HttpOperations.
| Modifier and Type | Field and Description |
|---|---|
| pack-priv static final AtomicIntegerFieldUpdater | |
| pack-priv volatile int | |
| pack-priv final WebSocketClientHandshaker | |
| pack-priv static final String | |
| pack-priv final Sinks. | |
| pack-priv final boolean |
| Access | Constructor and Description |
|---|---|
| pack-priv | WebsocketClientOperations(URI currentURI, WebsocketClientSpec websocketClientSpec, HttpClientOperations replaced)
|
| Modifier and Type | Method and Description |
|---|---|
| public HttpHeaders | headers()
Implements reactor. |
| public boolean | isWebsocket()
Overrides reactor. Implements reactor. |
| protected void | onInboundCancel()
Overrides reactor. |
| protected void | onInboundClose()
Overrides reactor. |
| public void | onInboundNext(ChannelHandlerContext
the context ctx, Object the read payload msg)Overrides reactor. Channel#read.
|
| protected void | onOutboundComplete()
Overrides reactor. |
| protected void | onOutboundError(Throwable
the err)Throwable causeOverrides reactor. |
| public Mono | receiveCloseStatus()
Implements reactor. |
| public String | selectedSubprotocol()
Implements reactor. |
| public NettyOutbound | send(Publisher<? extends ByteBuf>
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 |
| CLOSE_SENT | back to summary |
|---|---|
| pack-priv static final AtomicIntegerFieldUpdater<WebsocketClientOperations> CLOSE_SENT | |
| closeSent | back to summary |
|---|---|
| pack-priv volatile int closeSent | |
| handshaker | back to summary |
|---|---|
| pack-priv final WebSocketClientHandshaker handshaker | |
| INBOUND_CANCEL_LOG | back to summary |
|---|---|
| pack-priv static final String INBOUND_CANCEL_LOG Hides reactor. | |
| onCloseState | back to summary |
|---|---|
| pack-priv final Sinks. | |
| proxyPing | back to summary |
|---|---|
| pack-priv final boolean proxyPing | |
| WebsocketClientOperations | back to summary |
|---|---|
| pack-priv WebsocketClientOperations(URI currentURI, WebsocketClientSpec websocketClientSpec, HttpClientOperations 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).
| |
| onInboundClose | back to summary |
|---|---|
| protected void onInboundClose() Overrides reactor. Doc from reactor. React on inbound close (channel closed prematurely).
| |
| onInboundNext | back to summary |
|---|---|
| public void onInboundNext(ChannelHandlerContext ctx, Object msg) 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. React on inbound/outbound error. | |
| 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 ByteBuf> 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.
| |
| 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) | |
| sendCloseNow | back to summary |
|---|---|
pack-priv void sendCloseNow(CloseWebSocketFrame frame, WebSocketCloseStatus closeStatus)
| |