| Modifier and Type | Class and Description |
|---|---|
| public static class |
| Modifier and Type | Field and Description |
|---|---|
| private final boolean | |
| private final boolean | |
| private final boolean | |
| private final HttpHeaders | |
| pack-priv static final boolean | |
| pack-priv static final boolean | |
| pack-priv static final boolean | |
| pack-priv static final boolean | |
| pack-priv static final boolean | |
| pack-priv static final boolean | |
| private final boolean | |
| private final long | |
| private final boolean | |
| private final boolean | |
| private final long | |
| private final int | |
| private final boolean | |
| private final WebSocketCloseStatus | |
| private final String | |
| private final WebSocketVersion | |
| private final URI | |
| private final boolean |
| Access | Constructor and Description |
|---|---|
| private | WebSocketClientProtocolConfig(URI webSocketUri, String subprotocol, WebSocketVersion version, boolean allowExtensions, HttpHeaders customHeaders, int maxFramePayloadLength, boolean performMasking, boolean allowMaskMismatch, boolean handleCloseFrames, WebSocketCloseStatus sendCloseFrame, boolean dropPongFrames, long handshakeTimeoutMillis, long forceCloseTimeoutMillis, boolean absoluteUpgradeUrl, boolean generateOriginHeader, boolean withUTF8Validator)
|
| Modifier and Type | Method and Description |
|---|---|
| public boolean | |
| public boolean | |
| public boolean | |
| public HttpHeaders | |
| public boolean | |
| public long | |
| public boolean | |
| public boolean | |
| public long | |
| public int | |
| public static WebSocketClientProtocolConfig. | |
| public boolean | |
| public WebSocketCloseStatus | |
| public String | |
| public WebSocketClientProtocolConfig. | |
| public String | |
| public WebSocketVersion | |
| public URI | |
| public boolean |
| absoluteUpgradeUrl | back to summary |
|---|---|
| private final boolean absoluteUpgradeUrl | |
| allowExtensions | back to summary |
|---|---|
| private final boolean allowExtensions | |
| allowMaskMismatch | back to summary |
|---|---|
| private final boolean allowMaskMismatch | |
| customHeaders | back to summary |
|---|---|
| private final HttpHeaders customHeaders | |
| DEFAULT_ALLOW_MASK_MISMATCH | back to summary |
|---|---|
| pack-priv static final boolean DEFAULT_ALLOW_MASK_MISMATCH | |
| DEFAULT_DROP_PONG_FRAMES | back to summary |
|---|---|
| pack-priv static final boolean DEFAULT_DROP_PONG_FRAMES | |
| DEFAULT_GENERATE_ORIGIN_HEADER | back to summary |
|---|---|
| pack-priv static final boolean DEFAULT_GENERATE_ORIGIN_HEADER | |
| DEFAULT_HANDLE_CLOSE_FRAMES | back to summary |
|---|---|
| pack-priv static final boolean DEFAULT_HANDLE_CLOSE_FRAMES | |
| DEFAULT_PERFORM_MASKING | back to summary |
|---|---|
| pack-priv static final boolean DEFAULT_PERFORM_MASKING | |
| DEFAULT_WITH_UTF8_VALIDATOR | back to summary |
|---|---|
| pack-priv static final boolean DEFAULT_WITH_UTF8_VALIDATOR | |
| dropPongFrames | back to summary |
|---|---|
| private final boolean dropPongFrames | |
| forceCloseTimeoutMillis | back to summary |
|---|---|
| private final long forceCloseTimeoutMillis | |
| generateOriginHeader | back to summary |
|---|---|
| private final boolean generateOriginHeader | |
| handleCloseFrames | back to summary |
|---|---|
| private final boolean handleCloseFrames | |
| handshakeTimeoutMillis | back to summary |
|---|---|
| private final long handshakeTimeoutMillis | |
| maxFramePayloadLength | back to summary |
|---|---|
| private final int maxFramePayloadLength | |
| performMasking | back to summary |
|---|---|
| private final boolean performMasking | |
| sendCloseFrame | back to summary |
|---|---|
| private final WebSocketCloseStatus sendCloseFrame | |
| subprotocol | back to summary |
|---|---|
| private final String subprotocol | |
| version | back to summary |
|---|---|
| private final WebSocketVersion version | |
| webSocketUri | back to summary |
|---|---|
| private final URI webSocketUri | |
| withUTF8Validator | back to summary |
|---|---|
| private final boolean withUTF8Validator | |
| WebSocketClientProtocolConfig | back to summary |
|---|---|
| private WebSocketClientProtocolConfig(URI webSocketUri, String subprotocol, WebSocketVersion version, boolean allowExtensions, HttpHeaders customHeaders, int maxFramePayloadLength, boolean performMasking, boolean allowMaskMismatch, boolean handleCloseFrames, WebSocketCloseStatus sendCloseFrame, boolean dropPongFrames, long handshakeTimeoutMillis, long forceCloseTimeoutMillis, boolean absoluteUpgradeUrl, boolean generateOriginHeader, boolean withUTF8Validator) | |
| absoluteUpgradeUrl | back to summary |
|---|---|
| public boolean absoluteUpgradeUrl() | |
| allowExtensions | back to summary |
|---|---|
| public boolean allowExtensions() | |
| allowMaskMismatch | back to summary |
|---|---|
| public boolean allowMaskMismatch() | |
| customHeaders | back to summary |
|---|---|
| public HttpHeaders customHeaders() | |
| dropPongFrames | back to summary |
|---|---|
| public boolean dropPongFrames() | |
| forceCloseTimeoutMillis | back to summary |
|---|---|
| public long forceCloseTimeoutMillis() | |
| generateOriginHeader | back to summary |
|---|---|
| public boolean generateOriginHeader() | |
| handleCloseFrames | back to summary |
|---|---|
| public boolean handleCloseFrames() | |
| handshakeTimeoutMillis | back to summary |
|---|---|
| public long handshakeTimeoutMillis() | |
| maxFramePayloadLength | back to summary |
|---|---|
| public int maxFramePayloadLength() | |
| newBuilder | back to summary |
|---|---|
| public static WebSocketClientProtocolConfig. | |
| performMasking | back to summary |
|---|---|
| public boolean performMasking() | |
| sendCloseFrame | back to summary |
|---|---|
| public WebSocketCloseStatus sendCloseFrame() | |
| subprotocol | back to summary |
|---|---|
| public String subprotocol() | |
| toBuilder | back to summary |
|---|---|
| public WebSocketClientProtocolConfig. | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object. | |
| version | back to summary |
|---|---|
| public WebSocketVersion version() | |
| webSocketUri | back to summary |
|---|---|
| public URI webSocketUri() | |
| withUTF8Validator | back to summary |
|---|---|
| public boolean withUTF8Validator() | |
| Modifier and Type | Field and Description |
|---|---|
| private boolean | |
| private boolean | |
| private boolean | |
| private HttpHeaders | |
| private boolean | |
| private long | |
| private boolean | |
| private boolean | |
| private long | |
| private int | |
| private boolean | |
| private WebSocketCloseStatus | |
| private String | |
| private WebSocketVersion | |
| private URI | |
| private boolean |
| Access | Constructor and Description |
|---|---|
| private | |
| private | Builder(URI webSocketUri, String subprotocol, WebSocketVersion version, boolean allowExtensions, HttpHeaders customHeaders, int maxFramePayloadLength, boolean performMasking, boolean allowMaskMismatch, boolean handleCloseFrames, WebSocketCloseStatus sendCloseFrame, boolean dropPongFrames, long handshakeTimeoutMillis, long forceCloseTimeoutMillis, boolean absoluteUpgradeUrl, boolean generateOriginHeader, boolean withUTF8Validator)
|
| Modifier and Type | Method and Description |
|---|---|
| public WebSocketClientProtocolConfig. | absoluteUpgradeUrl(boolean absoluteUpgradeUrl)
Use an absolute url for the Upgrade request, typically when connecting through an HTTP proxy over clear HTTP |
| public WebSocketClientProtocolConfig. | allowExtensions(boolean allowExtensions)
Allow extensions to be used in the reserved bits of the web socket frame |
| public WebSocketClientProtocolConfig. | allowMaskMismatch(boolean allowMaskMismatch)
When set to true, frames which are not masked properly according to the standard will still be accepted. |
| public WebSocketClientProtocolConfig | |
| public WebSocketClientProtocolConfig. | |
| public WebSocketClientProtocolConfig. | |
| public WebSocketClientProtocolConfig. | forceCloseTimeoutMillis(long forceCloseTimeoutMillis)
Close the connection if it was not closed by the server after timeout specified |
| public WebSocketClientProtocolConfig. | generateOriginHeader(boolean generateOriginHeader)
Allows to generate the `Origin`|`Sec-WebSocket-Origin` header value for handshake request according the given webSocketURI. |
| public WebSocketClientProtocolConfig. | handleCloseFrames(boolean handleCloseFrames)
|
| public WebSocketClientProtocolConfig. | handshakeTimeoutMillis(long handshakeTimeoutMillis)
Handshake timeout in mills, when handshake timeout, will trigger user
event |
| public WebSocketClientProtocolConfig. | |
| public WebSocketClientProtocolConfig. | |
| public WebSocketClientProtocolConfig. | sendCloseFrame(WebSocketCloseStatus sendCloseFrame)
Close frame to send, when close frame was not send manually. |
| public WebSocketClientProtocolConfig. | |
| public WebSocketClientProtocolConfig. | version(WebSocketVersion version)
Version of web socket specification to use to connect to the server |
| public WebSocketClientProtocolConfig. | |
| public WebSocketClientProtocolConfig. | |
| public WebSocketClientProtocolConfig. | withUTF8Validator(boolean withUTF8Validator)
Toggles UTF8 validation for payload of text websocket frames. |
| absoluteUpgradeUrl | back to summary |
|---|---|
| private boolean absoluteUpgradeUrl | |
| allowExtensions | back to summary |
|---|---|
| private boolean allowExtensions | |
| allowMaskMismatch | back to summary |
|---|---|
| private boolean allowMaskMismatch | |
| customHeaders | back to summary |
|---|---|
| private HttpHeaders customHeaders | |
| dropPongFrames | back to summary |
|---|---|
| private boolean dropPongFrames | |
| forceCloseTimeoutMillis | back to summary |
|---|---|
| private long forceCloseTimeoutMillis | |
| generateOriginHeader | back to summary |
|---|---|
| private boolean generateOriginHeader | |
| handleCloseFrames | back to summary |
|---|---|
| private boolean handleCloseFrames | |
| handshakeTimeoutMillis | back to summary |
|---|---|
| private long handshakeTimeoutMillis | |
| maxFramePayloadLength | back to summary |
|---|---|
| private int maxFramePayloadLength | |
| performMasking | back to summary |
|---|---|
| private boolean performMasking | |
| sendCloseFrame | back to summary |
|---|---|
| private WebSocketCloseStatus sendCloseFrame | |
| subprotocol | back to summary |
|---|---|
| private String subprotocol | |
| version | back to summary |
|---|---|
| private WebSocketVersion version | |
| webSocketUri | back to summary |
|---|---|
| private URI webSocketUri | |
| withUTF8Validator | back to summary |
|---|---|
| private boolean withUTF8Validator | |
| Builder | back to summary |
|---|---|
| private Builder(WebSocketClientProtocolConfig clientConfig) | |
| Builder | back to summary |
|---|---|
| private Builder(URI webSocketUri, String subprotocol, WebSocketVersion version, boolean allowExtensions, HttpHeaders customHeaders, int maxFramePayloadLength, boolean performMasking, boolean allowMaskMismatch, boolean handleCloseFrames, WebSocketCloseStatus sendCloseFrame, boolean dropPongFrames, long handshakeTimeoutMillis, long forceCloseTimeoutMillis, boolean absoluteUpgradeUrl, boolean generateOriginHeader, boolean withUTF8Validator) | |
| absoluteUpgradeUrl | back to summary |
|---|---|
| public WebSocketClientProtocolConfig. Use an absolute url for the Upgrade request, typically when connecting through an HTTP proxy over clear HTTP | |
| allowExtensions | back to summary |
|---|---|
| public WebSocketClientProtocolConfig. Allow extensions to be used in the reserved bits of the web socket frame | |
| allowMaskMismatch | back to summary |
|---|---|
| public WebSocketClientProtocolConfig. When set to true, frames which are not masked properly according to the standard will still be accepted. | |
| build | back to summary |
|---|---|
| public WebSocketClientProtocolConfig build() Build unmodifiable client protocol configuration. | |
| customHeaders | back to summary |
|---|---|
| public WebSocketClientProtocolConfig. Map of custom headers to add to the client request | |
| dropPongFrames | back to summary |
|---|---|
| public WebSocketClientProtocolConfig.
| |
| forceCloseTimeoutMillis | back to summary |
|---|---|
| public WebSocketClientProtocolConfig. Close the connection if it was not closed by the server after timeout specified | |
| generateOriginHeader | back to summary |
|---|---|
| public WebSocketClientProtocolConfig. Allows to generate the `Origin`|`Sec-WebSocket-Origin` header value for handshake request
according the given webSocketURI. Usually it's not necessary and can be disabled,
but for backward compatibility is set to | |
| handleCloseFrames | back to summary |
|---|---|
| public WebSocketClientProtocolConfig.
| |
| handshakeTimeoutMillis | back to summary |
|---|---|
| public WebSocketClientProtocolConfig. Handshake timeout in mills, when handshake timeout, will trigger user
event | |
| maxFramePayloadLength | back to summary |
|---|---|
| public WebSocketClientProtocolConfig. Maximum length of a frame's payload | |
| performMasking | back to summary |
|---|---|
| public WebSocketClientProtocolConfig. Whether to mask all written websocket frames. This must be set to true in order to be fully compatible with the websocket specifications. Client applications that communicate with a non-standard server which doesn't require masking might set this to false to achieve a higher performance. | |
| sendCloseFrame | back to summary |
|---|---|
| public WebSocketClientProtocolConfig. Close frame to send, when close frame was not send manually. Or | |
| subprotocol | back to summary |
|---|---|
| public WebSocketClientProtocolConfig. Sub protocol request sent to the server. | |
| version | back to summary |
|---|---|
| public WebSocketClientProtocolConfig. Version of web socket specification to use to connect to the server | |
| webSocketUri | back to summary |
|---|---|
| public WebSocketClientProtocolConfig. URL for web socket communications. e.g "ws://myhost.com/mypath". Subsequent web socket frames will be sent to this URL. | |
| webSocketUri | back to summary |
|---|---|
| public WebSocketClientProtocolConfig. URL for web socket communications. e.g "ws://myhost.com/mypath". Subsequent web socket frames will be sent to this URL. | |
| withUTF8Validator | back to summary |
|---|---|
| public WebSocketClientProtocolConfig. Toggles UTF8 validation for payload of text websocket frames. By default validation is enabled. | |