ProtocolEvent that indicate the completion of a websocket handshake.
| Modifier and Type | Field and Description |
|---|---|
| private final Throwable | |
| private final WebSocketVersion |
| Access | Constructor and Description |
|---|---|
| pack-priv | WebSocketHandshakeCompletionEvent(WebSocketVersion
the version)WebSocketVersion that was used.Create a new event that indicate a successful websocket handshake. |
| pack-priv | WebSocketHandshakeCompletionEvent(Throwable
the cause of the failure cause)Create a new event that indicate a failed websocket handshake. |
| Modifier and Type | Method and Description |
|---|---|
| public final Throwable | cause()
Implements io. null if isSuccess().
|
| public String | |
| public final WebSocketVersion | Returns: the version.Return the |
| cause | back to summary |
|---|---|
| private final Throwable cause | |
| version | back to summary |
|---|---|
| private final WebSocketVersion version | |
| WebSocketHandshakeCompletionEvent | back to summary |
|---|---|
| pack-priv WebSocketHandshakeCompletionEvent(WebSocketVersion version) Create a new event that indicate a successful websocket handshake.
| |
| WebSocketHandshakeCompletionEvent | back to summary |
|---|---|
| pack-priv WebSocketHandshakeCompletionEvent(Throwable cause) Create a new event that indicate a failed websocket handshake.
| |
| cause | back to summary |
|---|---|
| public final Throwable cause() Implements io. Doc from io. Returns the cause of the failure, or
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object. | |
| version | back to summary |
|---|---|
| public final WebSocketVersion version() Return the
| |