HttpOperations
| Modifier and Type | Field and Description |
|---|---|
| pack-priv static final AtomicIntegerFieldUpdater | |
| pack-priv volatile int | |
| pack-priv final WebSocketServerHandshaker | |
| pack-priv final Future | |
| pack-priv final Sinks. | |
| pack-priv final boolean |
| Access | Constructor and Description |
|---|---|
| pack-priv | WebsocketServerOperations(String wsUrl, WebsocketServerSpec websocketServerSpec, HttpServerOperations replaced)
|
| Modifier and Type | Method and Description |
|---|---|
| public HttpHeaders | headers()
Implements reactor. |
| public boolean | isWebsocket()
Overrides reactor. Implements reactor. |
| protected void | onInboundCancel()
Overrides reactor. |
| public void | onInboundNext(ChannelHandlerContext
the context ctx, Object the read payload frame)Overrides reactor. Channel#read
|
| protected void | onOutboundComplete()
Overrides reactor. |
| protected void | onOutboundError(Throwable
the err)Throwable causeOverrides reactor. discard(), the inbound will
be canceled on channel inactive event if there is no subscriber available
|
| public Mono | receiveCloseStatus()
Implements reactor. |
| public String | selectedSubprotocol()
Implements reactor. |
| public NettyOutbound | send(Publisher<? extends Buffer>
the dataStream publishing OUT items to write on this channel dataStream)Overrides reactor. Overrides default reactor. Implements reactor. |
| public Mono | sendClose()
Implements reactor. |
| public Mono | sendClose(int
reserved bits used for protocol extensions rsv)Implements reactor. |
| public Mono | sendClose(int
Integer status code as per RFC 6455#section-7.4. For
example, 1000 indicates normal closure. statusCode, String Reason text. Set to null if no text. reasonText)Implements reactor. |
| public Mono | sendClose(int
reserved bits used for protocol extensions rsv, int Integer status code as per RFC 6455#section-7.4. For
example, 1000 indicates normal closure. statusCode, String Reason text. Set to null if no text. reasonText)Implements reactor. |
| pack-priv Mono | |
| pack-priv void | |
| pack-priv void | sendCloseNow(CloseWebSocketFrame frame, WebSocketCloseStatus closeStatus, FutureListener<Void> listener)
|
| CLOSE_SENT | back to summary |
|---|---|
| pack-priv static final AtomicIntegerFieldUpdater<WebsocketServerOperations> CLOSE_SENT | |
| closeSent | back to summary |
|---|---|
| pack-priv volatile int closeSent | |
| handshaker | back to summary |
|---|---|
| pack-priv final WebSocketServerHandshaker handshaker | |
| handshakerResult | back to summary |
|---|---|
| pack-priv final Future<Void> handshakerResult | |
| onCloseState | back to summary |
|---|---|
| pack-priv final Sinks. | |
| proxyPing | back to summary |
|---|---|
| pack-priv final boolean proxyPing | |
| WebsocketServerOperations | back to summary |
|---|---|
| pack-priv WebsocketServerOperations(String wsUrl, WebsocketServerSpec websocketServerSpec, HttpServerOperations replaced) | |
| headers | back to summary |
|---|---|
| public HttpHeaders headers() Implements reactor. Doc from reactor. Returns the websocket remote headers sent during handshake
| |
| isWebsocket | back to summary |
|---|---|
| public boolean isWebsocket() Overrides reactor. Implements reactor. Doc from reactor. Returns true if websocket connection (upgraded)
| |
| onInboundCancel | back to summary |
|---|---|
| protected void onInboundCancel() Overrides reactor. Doc from reactor. React on inbound cancel (receive() subscriber cancelled)
| |
| onInboundNext | back to summary |
|---|---|
| public void onInboundNext(ChannelHandlerContext ctx, Object frame) Overrides reactor. Doc from reactor. React on inbound
| |
| onOutboundComplete | back to summary |
|---|---|
| protected void onOutboundComplete() Overrides reactor. Doc from reactor. React on inbound/outbound completion (last packet)
| |
| onOutboundError | back to summary |
|---|---|
| protected void onOutboundError(Throwable err) Overrides reactor. Doc from reactor. There is no need of invoking | |
| receiveCloseStatus | back to summary |
|---|---|
| public Mono Implements reactor. Doc from reactor. Receive the close status code and reason if sent by the remote peer, or empty if the connection completes otherwise. Note Some close status codes are designated for use in applications expecting a status code
to indicate that the connection was closed etc. They are not meant to be set as a status code in a
Close control frame as such these status codes cannot be used with
| |
| selectedSubprotocol | back to summary |
|---|---|
| public String selectedSubprotocol() Implements reactor. Doc from reactor. Returns the websocket subprotocol negotiated by the client and server during the websocket handshake, or null if none was requested. | |
| send | back to summary |
|---|---|
| public NettyOutbound send(Publisher<? extends Buffer> dataStream) Overrides reactor. Overrides default reactor. Implements reactor. Doc from reactor. Sends data to the peer, listens for any error on write and closes on terminal signal (complete|error). A new Note Nesting any send* method is not supported. Note If you need to transform from
| |
| sendClose | back to summary |
|---|---|
| public Mono Implements reactor. Doc from reactor. Prepare to send a close frame on subscribe then close the underlying channel | |
| sendClose | back to summary |
|---|---|
| public Mono Implements reactor. Doc from reactor. Prepare to send a close frame on subscribe then close the underlying channel | |
| sendClose | back to summary |
|---|---|
| public Mono Implements reactor. Doc from reactor. Prepare to send a close frame on subscribe then close the underlying channel
| |
| sendClose | back to summary |
|---|---|
| public Mono Implements reactor. Doc from reactor. Prepare to send a close frame on subscribe then close the underlying channel
| |
| sendClose | back to summary |
|---|---|
| pack-priv Mono | |
| sendCloseNow | back to summary |
|---|---|
| pack-priv void sendCloseNow(CloseWebSocketFrame frame, FutureListener<Void> listener) | |
| sendCloseNow | back to summary |
|---|---|
| pack-priv void sendCloseNow(CloseWebSocketFrame frame, WebSocketCloseStatus closeStatus, FutureListener<Void> listener) | |