public class ConnectionClosedEvent extends ConnectionEvent
Constructor and Description |
---|
ConnectionClosedEvent(Number projectVersionID,
URI interactiveHostURI,
Number code,
String message,
boolean closedRemotely)
Initializes a new
ConnectionClosedEvent . |
Modifier and Type | Method and Description |
---|---|
Number |
getStatusCode()
Returns the HTTP status code returned when the connected was closed.
|
String |
getStatusMessage()
Returns the HTTP status message returned when the connection was closed.
|
boolean |
wasClosedRemotely()
Returns
true if the connection was closed remotely, false otherwise. |
getInteractiveHostURI, getProjectVersionID
getRequestID, setRequestID
public ConnectionClosedEvent(Number projectVersionID, URI interactiveHostURI, Number code, String message, boolean closedRemotely)
ConnectionClosedEvent
.projectVersionID
- The project version ID for the Interactive integrationinteractiveHostURI
- URI
for the connected Interactive service hostcode
- HTTP status codemessage
- HTTP status messageclosedRemotely
- true
if the connected was closed remotely, false
otherwiseInteractiveWebSocketClient.onClose(int, String, boolean)
public Number getStatusCode()
public String getStatusMessage()
public boolean wasClosedRemotely()
true
if the connection was closed remotely, false
otherwise.true
if the connection was closed remotely, false
otherwiseCopyright © 2018. All rights reserved.