| Modifier and Type | Field and Description |
|---|---|
| private final HostAndPort | |
| private final long | |
| private final Http1xServerConnection | |
| private Promise | |
| private final WebSocketServerHandshaker | |
| private final String | |
| private final String | |
| private final String | |
| private Http1xServerRequest | |
| private final String | |
| private volatile Integer | |
| private static final AtomicReferenceFieldUpdater | |
| private final String |
| Access | Constructor and Description |
|---|---|
| pack-priv | ServerWebSocketImpl(ContextInternal context, Http1xServerConnection conn, boolean supportsContinuation, long closingTimeout, Http1xServerRequest request, WebSocketServerHandshaker handshaker, int maxWebSocketFrameSize, int maxWebSocketMessageSize, boolean registerWebSocketWriteHandlers)
|
| Modifier and Type | Method and Description |
|---|---|
| public void | accept()
Implements io. Accept the WebSocket and terminate the WebSocket handshake. |
| public HostAndPort | |
| public Future | |
| private void | |
| protected void | |
| protected void | handleCloseConnection()
Implements abstract io. Called when a close frame is received and the WebSocket. |
| private void | |
| public String | |
| public String | |
| public String | |
| public void | |
| public void | reject(int sc)
Implements io. Like |
| public String | |
| public void | setHandshake(Future<Integer>
the future to complete with future, Handler<AsyncResult<Integer>> the completion handler handler)Implements io. Set an asynchronous result for the handshake, upon completion of the specified
|
| public Future | setHandshake(Future<Integer> future)
Implements io. Like |
| pack-priv Boolean | |
| public String | |
| public Future | writeFrame(WebSocketFrame
the frame to write frame)Overrides io. Implements io. Write a WebSocket frame to the connection |
| authority | back to summary |
|---|---|
| private final HostAndPort authority | |
| closingTimeoutMS | back to summary |
|---|---|
| private final long closingTimeoutMS | |
| conn | back to summary |
|---|---|
| private final Http1xServerConnection conn | |
| handshakePromise | back to summary |
|---|---|
| private Promise<Integer> handshakePromise | |
| handshaker | back to summary |
|---|---|
| private final WebSocketServerHandshaker handshaker | |
| host | back to summary |
|---|---|
| private final String host | |
| path | back to summary |
|---|---|
| private final String path | |
| query | back to summary |
|---|---|
| private final String query | |
| request | back to summary |
|---|---|
| private Http1xServerRequest request | |
| scheme | back to summary |
|---|---|
| private final String scheme | |
| status | back to summary |
|---|---|
| private volatile Integer status | |
| STATUS_UPDATER | back to summary |
|---|---|
| private static final AtomicReferenceFieldUpdater<ServerWebSocketImpl, Integer> STATUS_UPDATER | |
| uri | back to summary |
|---|---|
| private final String uri | |
| ServerWebSocketImpl | back to summary |
|---|---|
| pack-priv ServerWebSocketImpl(ContextInternal context, Http1xServerConnection conn, boolean supportsContinuation, long closingTimeout, Http1xServerRequest request, WebSocketServerHandshaker handshaker, int maxWebSocketFrameSize, int maxWebSocketMessageSize, boolean registerWebSocketWriteHandlers) | |
| accept | back to summary |
|---|---|
| public void accept() Implements io. Doc from io. Accept the WebSocket and terminate the WebSocket handshake. This method should be called from the WebSocket handler to explicitly accept the WebSocket and terminate the WebSocket handshake.
| |
| authority | back to summary |
|---|---|
| public HostAndPort authority() Implements io.
| |
| close | back to summary |
|---|---|
| public Future Overrides io.
| |
| doHandshake | back to summary |
|---|---|
| private void doHandshake() | |
| handleClose | back to summary |
|---|---|
| protected void handleClose(boolean graceful) Overrides io.
| |
| handleCloseConnection | back to summary |
|---|---|
| protected void handleCloseConnection() Implements abstract io. Doc from io. Called when a close frame is received and the WebSocket.
| |
| handleHandshake | back to summary |
|---|---|
| private void handleHandshake(int sc) | |
| host | back to summary |
|---|---|
| public String host() Implements io.
| |
| path | back to summary |
|---|---|
| public String path() Implements io.
| |
| query | back to summary |
|---|---|
| public String query() Implements io.
| |
| reject | back to summary |
|---|---|
| public void reject() Implements io. Doc from io. Reject the WebSocket. Calling this method from the WebSocket handler when it is first passed to you gives you the opportunity to reject the WebSocket, which will cause the WebSocket handshake to fail by returning a 502 response code. You might use this method, if for example you only want to accept WebSockets with a particular path.
| |
| reject | back to summary |
|---|---|
| public void reject(int sc) Implements io. Doc from io. Like
| |
| scheme | back to summary |
|---|---|
| public String scheme() Implements io.
| |
| setHandshake | back to summary |
|---|---|
| public void setHandshake(Future<Integer> future, Handler<AsyncResult<Integer>> handler) Implements io. Doc from io. Set an asynchronous result for the handshake, upon completion of the specified
close() method
will try to accept the handshake and close the WebSocket afterward. Thus it is advised to try to complete
the future with Promise#tryComplete or Promise#tryFail.
This method should be called from the WebSocket handler to explicitly set an asynchronous handshake.
Calling this method will override the | |
| setHandshake | back to summary |
|---|---|
| public Future Implements io. Doc from io. Like
| |
| tryHandshake | back to summary |
|---|---|
| pack-priv Boolean tryHandshake(int sc) | |
| uri | back to summary |
|---|---|
| public String uri() Implements io.
| |
| writeFrame | back to summary |
|---|---|
| public Future Overrides io. Implements io. Doc from io. Write a WebSocket frame to the connection
| |