| Modifier and Type | Field and Description |
|---|---|
| private final HttpHeaders | |
| private final String | |
| private final String |
| Access | Constructor and Description |
|---|---|
| public | WebSocketServerHandshakeCompletionEvent(WebSocketVersion
the version, String WebSocketVersion that was used.the URI of the request. requestUri, HttpHeaders the headers of the upgrade request. requestHeaders, String the selected sub-protocol, if any. selectedSubprotocol)Create a new event that indicate a successful websocket handshake. |
| public | WebSocketServerHandshakeCompletionEvent(Throwable
the cause of the failure. cause)Create a new event that indicate a failed websocket handshake. |
| Modifier and Type | Method and Description |
|---|---|
| public HttpHeaders | Returns: the headers.Return the request |
| public String | Returns: the uri.Return the request uri of the handshake if |
| public String | Returns: the sub-protocol.Return the selected sub-protocol of the handshake if |
| requestHeaders | back to summary |
|---|---|
| private final HttpHeaders requestHeaders | |
| requestUri | back to summary |
|---|---|
| private final String requestUri | |
| selectedSubprotocol | back to summary |
|---|---|
| private final String selectedSubprotocol | |
| WebSocketServerHandshakeCompletionEvent | back to summary |
|---|---|
| public WebSocketServerHandshakeCompletionEvent(WebSocketVersion version, String requestUri, HttpHeaders requestHeaders, String selectedSubprotocol) Create a new event that indicate a successful websocket handshake.
| |
| WebSocketServerHandshakeCompletionEvent | back to summary |
|---|---|
| public WebSocketServerHandshakeCompletionEvent(Throwable cause) Create a new event that indicate a failed websocket handshake.
| |
| requestHeaders | back to summary |
|---|---|
| public HttpHeaders requestHeaders() Return the request
| |
| requestUri | back to summary |
|---|---|
| public String requestUri() Return the request uri of the handshake if
| |
| selectedSubprotocol | back to summary |
|---|---|
| public String selectedSubprotocol() Return the selected sub-protocol of the handshake if
| |