Index
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form
A
- ABNORMAL - Static variable in class com.neovisionaries.ws.client.WebSocketCloseCode
-
1006; 1006 is a reserved value and MUST NOT be set as a status code in a Close control frame by an endpoint. It is designated for use in applications expecting a status code to indicate that the connection was closed abnormally, e.g., without sending or receiving a Close control frame.
- addExtension(WebSocketExtension) - Method in class com.neovisionaries.ws.client.WebSocket
-
Add a value for
Sec-WebSocket-Extension. - addExtension(String) - Method in class com.neovisionaries.ws.client.WebSocket
-
Add a value for
Sec-WebSocket-Extension. - addHeader(String, String) - Method in class com.neovisionaries.ws.client.ProxySettings
-
Add an additional HTTP header passed to the proxy server.
- addHeader(String, String) - Method in class com.neovisionaries.ws.client.WebSocket
-
Add a pair of extra HTTP header.
- addListener(WebSocketListener) - Method in class com.neovisionaries.ws.client.WebSocket
-
Add a listener to receive events on this WebSocket.
- addListeners(List) - Method in class com.neovisionaries.ws.client.WebSocket
-
Add listeners.
- addProtocol(String) - Method in class com.neovisionaries.ws.client.WebSocket
-
Add a value for
Sec-WebSocket-Protocol. - Auto Flush - Section in class com.neovisionaries.ws.client.WebSocket
- AWAY - Static variable in class com.neovisionaries.ws.client.WebSocketCloseCode
-
1001; 1001 indicates that an endpoint is "going away", such as a server going down or a browser having navigated away from a page.
B
- BINARY - Static variable in class com.neovisionaries.ws.client.WebSocketOpcode
-
Opcode for "binary frame" (0x2).
- BOTH - Enum constant in enum com.neovisionaries.ws.client.DualStackMode
-
Try both IPv4 and IPv6 to establish a connection.
C
- clearExtensions() - Method in class com.neovisionaries.ws.client.WebSocket
-
Remove all extensions from
Sec-WebSocket-Extension. - clearHeaders() - Method in class com.neovisionaries.ws.client.WebSocket
-
Clear all extra HTTP headers.
- clearListeners() - Method in class com.neovisionaries.ws.client.WebSocket
-
Remove all the listeners from this WebSocket.
- clearProtocols() - Method in class com.neovisionaries.ws.client.WebSocket
-
Remove all protocols from
Sec-WebSocket-Protocol. - clearUserInfo() - Method in class com.neovisionaries.ws.client.WebSocket
-
Clear the credentials to connect to the WebSocket endpoint.
- CLOSE - Static variable in class com.neovisionaries.ws.client.WebSocketOpcode
-
Opcode for "connection close" (0x8).
- CLOSED - Enum constant in enum com.neovisionaries.ws.client.WebSocketState
-
The WebSocket connection is closed.
- CLOSING - Enum constant in enum com.neovisionaries.ws.client.WebSocketState
-
A closing handshake is being performed.
- com.neovisionaries.ws.client - package com.neovisionaries.ws.client
-
High-quality WebSocket client implementation in Java.
- Compression - Section in class com.neovisionaries.ws.client.WebSocket
- COMPRESSION_ERROR - Enum constant in enum com.neovisionaries.ws.client.WebSocketError
-
Compression failed.
- Configure WebSocket - Section in class com.neovisionaries.ws.client.WebSocket
- Congestion Control - Section in class com.neovisionaries.ws.client.WebSocket
- connect() - Method in class com.neovisionaries.ws.client.WebSocket
-
Connect to the server, send an opening handshake to the server, receive the response and then start threads to communicate with the server.
- connect(ExecutorService) - Method in class com.neovisionaries.ws.client.WebSocket
-
Execute
WebSocket.connect()asynchronously using the givenExecutorService. - CONNECT_THREAD - Enum constant in enum com.neovisionaries.ws.client.ThreadType
-
A thread which calls
WebSocket.connect()asynchronously (ConnectThread). - connectable() - Method in class com.neovisionaries.ws.client.WebSocket
-
Get a new
Callable<WebSocket>instance whosecall()method callsWebSocket.connect()method of thisWebSocketinstance. - connectAsynchronously() - Method in class com.neovisionaries.ws.client.WebSocket
-
Execute
WebSocket.connect()asynchronously by creating a new thread and callingconnect()in the thread. - CONNECTING - Enum constant in enum com.neovisionaries.ws.client.WebSocketState
-
An opening handshake is being performed.
- Connect To Server - Section in class com.neovisionaries.ws.client.WebSocket
- Connect To Server Asynchronously - Section in class com.neovisionaries.ws.client.WebSocket
- containsParameter(String) - Method in class com.neovisionaries.ws.client.WebSocketExtension
-
Check if the parameter identified by the key is contained.
- CONTINUATION - Static variable in class com.neovisionaries.ws.client.WebSocketOpcode
-
Opcode for "frame continuation" (0x0).
- CONTINUATION_NOT_CLOSED - Enum constant in enum com.neovisionaries.ws.client.WebSocketError
-
A non-control frame was detected although the existing continuation had not been closed.
- createBinaryFrame(byte[]) - Static method in class com.neovisionaries.ws.client.WebSocketFrame
-
Create a binary frame.
- createCloseFrame() - Static method in class com.neovisionaries.ws.client.WebSocketFrame
-
Create a close frame.
- createCloseFrame(int) - Static method in class com.neovisionaries.ws.client.WebSocketFrame
-
Create a close frame.
- createCloseFrame(int, String) - Static method in class com.neovisionaries.ws.client.WebSocketFrame
-
Create a close frame.
- createContinuationFrame() - Static method in class com.neovisionaries.ws.client.WebSocketFrame
-
Create a continuation frame.
- createContinuationFrame(byte[]) - Static method in class com.neovisionaries.ws.client.WebSocketFrame
-
Create a continuation frame.
- createContinuationFrame(String) - Static method in class com.neovisionaries.ws.client.WebSocketFrame
-
Create a continuation frame.
- CREATED - Enum constant in enum com.neovisionaries.ws.client.WebSocketState
-
The initial state of a
WebSocketinstance. - createPingFrame() - Static method in class com.neovisionaries.ws.client.WebSocketFrame
-
Create a ping frame.
- createPingFrame(byte[]) - Static method in class com.neovisionaries.ws.client.WebSocketFrame
-
Create a ping frame.
- createPingFrame(String) - Static method in class com.neovisionaries.ws.client.WebSocketFrame
-
Create a ping frame.
- createPongFrame() - Static method in class com.neovisionaries.ws.client.WebSocketFrame
-
Create a pong frame.
- createPongFrame(byte[]) - Static method in class com.neovisionaries.ws.client.WebSocketFrame
-
Create a pong frame.
- createPongFrame(String) - Static method in class com.neovisionaries.ws.client.WebSocketFrame
-
Create a pong frame.
- createSocket(String) - Method in class com.neovisionaries.ws.client.WebSocketFactory
-
Create a WebSocket.
- createSocket(String, int) - Method in class com.neovisionaries.ws.client.WebSocketFactory
-
Create a WebSocket.
- createSocket(URI) - Method in class com.neovisionaries.ws.client.WebSocketFactory
-
Create a WebSocket.
- createSocket(URI, int) - Method in class com.neovisionaries.ws.client.WebSocketFactory
-
Create a WebSocket.
- createSocket(URL) - Method in class com.neovisionaries.ws.client.WebSocketFactory
-
Create a WebSocket.
- createSocket(URL, int) - Method in class com.neovisionaries.ws.client.WebSocketFactory
-
Create a WebSocket.
- createTextFrame(String) - Static method in class com.neovisionaries.ws.client.WebSocketFrame
-
Create a text frame.
- Create WebSocket - Section in class com.neovisionaries.ws.client.WebSocket
- Create WebSocketFactory - Section in class com.neovisionaries.ws.client.WebSocket
D
- DECOMPRESSION_ERROR - Enum constant in enum com.neovisionaries.ws.client.WebSocketError
-
Decompression failed.
- Direct Text Message - Section in class com.neovisionaries.ws.client.WebSocket
- disconnect() - Method in class com.neovisionaries.ws.client.WebSocket
-
Disconnect the WebSocket.
- disconnect(int) - Method in class com.neovisionaries.ws.client.WebSocket
-
Disconnect the WebSocket.
- disconnect(int, String) - Method in class com.neovisionaries.ws.client.WebSocket
-
Disconnect the WebSocket.
- disconnect(int, String, long) - Method in class com.neovisionaries.ws.client.WebSocket
-
Disconnect the WebSocket.
- disconnect(String) - Method in class com.neovisionaries.ws.client.WebSocket
-
Disconnect the WebSocket.
- Disconnect WebSocket - Section in class com.neovisionaries.ws.client.WebSocket
- DualStackMode - Enum in com.neovisionaries.ws.client
-
The dual stack mode defines which IP address families will be used to establish a connection.
E
- Error Handling - Section in class com.neovisionaries.ws.client.WebSocket
- establish(InetAddress[]) - Method in class com.neovisionaries.ws.client.SocketInitiator
- EXTENSION_PARSE_ERROR - Enum constant in enum com.neovisionaries.ws.client.WebSocketError
-
The value in
Sec-WebSocket-Extensionsfailed to be parsed. - EXTENSIONS_CONFLICT - Enum constant in enum com.neovisionaries.ws.client.WebSocketError
-
The combination of the extensions contained in
Sec-WebSocket-Extensionsheader causes conflicts.
F
- finalize() - Method in class com.neovisionaries.ws.client.WebSocket
- FINISH_THREAD - Enum constant in enum com.neovisionaries.ws.client.ThreadType
-
A thread which does finalization of a
WebSocketinstance - flush() - Method in class com.neovisionaries.ws.client.WebSocket
-
Flush frames to the server.
- FLUSH_ERROR - Enum constant in enum com.neovisionaries.ws.client.WebSocketError
-
Flushing frames to the server failed.
- FRAGMENTED_CONTROL_FRAME - Enum constant in enum com.neovisionaries.ws.client.WebSocketError
-
A control frame is fragmented.
- FRAME_MASKED - Enum constant in enum com.neovisionaries.ws.client.WebSocketError
-
A frame from the server is masked.
G
- generate() - Method in interface com.neovisionaries.ws.client.PayloadGenerator
-
Generate a payload of a frame.
- getAgreedExtensions() - Method in class com.neovisionaries.ws.client.WebSocket
-
Get the agreed extensions.
- getAgreedProtocol() - Method in class com.neovisionaries.ws.client.WebSocket
-
Get the agreed protocol.
- getBody() - Method in exception class com.neovisionaries.ws.client.OpeningHandshakeException
-
Get the response body contained in the WebSocket opening handshake response from the server.
- getCloseCode() - Method in class com.neovisionaries.ws.client.WebSocketFrame
-
Parse the first two bytes of the payload as a close code.
- getCloseReason() - Method in class com.neovisionaries.ws.client.WebSocketFrame
-
Parse the third and subsequent bytes of the payload as a close reason.
- getConnectedSocket() - Method in class com.neovisionaries.ws.client.WebSocket
-
Get the raw socket which this WebSocket uses internally.
- getConnectionTimeout() - Method in class com.neovisionaries.ws.client.WebSocketFactory
-
Get the timeout value in milliseconds for socket connection.
- getDualStackFallbackDelay() - Method in class com.neovisionaries.ws.client.WebSocketFactory
-
Get the dual stack fallback delay in milliseconds that will be applied when establishing a socket connection.
- getDualStackMode() - Method in class com.neovisionaries.ws.client.WebSocketFactory
-
Get the dual stack mode that will be applied when establishing a socket connection.
- getError() - Method in exception class com.neovisionaries.ws.client.WebSocketException
- getFin() - Method in class com.neovisionaries.ws.client.WebSocketFrame
-
Get the value of FIN bit.
- getFrameQueueSize() - Method in class com.neovisionaries.ws.client.WebSocket
-
Get the size of the frame queue.
- getHeaders() - Method in exception class com.neovisionaries.ws.client.OpeningHandshakeException
-
Get the HTTP headers contained in the WebSocket opening handshake response from the server.
- getHeaders() - Method in class com.neovisionaries.ws.client.ProxySettings
-
Get additional HTTP headers passed to the proxy server.
- getHost() - Method in class com.neovisionaries.ws.client.ProxySettings
-
Get the host name of the proxy server.
- getHostname() - Method in exception class com.neovisionaries.ws.client.HostnameUnverifiedException
-
Get the expected hostname.
- getHttpVersion() - Method in class com.neovisionaries.ws.client.StatusLine
-
Get the HTTP version.
- getId() - Method in class com.neovisionaries.ws.client.ProxySettings
-
Get the ID for authentication at the proxy server.
- getMaxPayloadSize() - Method in class com.neovisionaries.ws.client.WebSocket
-
Get the maximum payload size.
- getName() - Method in class com.neovisionaries.ws.client.WebSocketExtension
-
Get the extension name.
- getOpcode() - Method in class com.neovisionaries.ws.client.WebSocketFrame
-
Get the opcode.
- getParameter(String) - Method in class com.neovisionaries.ws.client.WebSocketExtension
-
Get the value of the specified parameter.
- getParameters() - Method in class com.neovisionaries.ws.client.WebSocketExtension
-
Get the parameters.
- getPassword() - Method in class com.neovisionaries.ws.client.ProxySettings
-
Get the password for authentication at the proxy server.
- getPayload() - Method in class com.neovisionaries.ws.client.WebSocketFrame
-
Get the unmasked payload.
- getPayloadLength() - Method in class com.neovisionaries.ws.client.WebSocketFrame
-
Get the payload length.
- getPayloadText() - Method in class com.neovisionaries.ws.client.WebSocketFrame
-
Get the unmasked payload as a text.
- getPingInterval() - Method in class com.neovisionaries.ws.client.WebSocket
-
Get the interval of periodical ping frames.
- getPingPayloadGenerator() - Method in class com.neovisionaries.ws.client.WebSocket
-
Get the generator of payload of ping frames that are sent automatically.
- getPingSenderName() - Method in class com.neovisionaries.ws.client.WebSocket
-
Get the name of the
Timerthat sends ping frames periodically. - getPongInterval() - Method in class com.neovisionaries.ws.client.WebSocket
-
Get the interval of periodical pong frames.
- getPongPayloadGenerator() - Method in class com.neovisionaries.ws.client.WebSocket
-
Get the generator of payload of pong frames that are sent automatically.
- getPongSenderName() - Method in class com.neovisionaries.ws.client.WebSocket
-
Get the name of the
Timerthat sends pong frames periodically. - getPort() - Method in class com.neovisionaries.ws.client.ProxySettings
-
Get the port number of the proxy server.
- getProxySettings() - Method in class com.neovisionaries.ws.client.WebSocketFactory
-
Get the proxy settings.
- getReasonPhrase() - Method in class com.neovisionaries.ws.client.StatusLine
-
Get the reason phrase.
- getRsv1() - Method in class com.neovisionaries.ws.client.WebSocketFrame
-
Get the value of RSV1 bit.
- getRsv2() - Method in class com.neovisionaries.ws.client.WebSocketFrame
-
Get the value of RSV2 bit.
- getRsv3() - Method in class com.neovisionaries.ws.client.WebSocketFrame
-
Get the value of RSV3 bit.
- getServerNames() - Method in class com.neovisionaries.ws.client.ProxySettings
-
Get server names for SNI (Server Name Indication).
- getServerNames() - Method in class com.neovisionaries.ws.client.WebSocketFactory
-
Get server names for SNI (Server Name Indication).
- getSocket() - Method in class com.neovisionaries.ws.client.WebSocket
-
Get the raw socket which this WebSocket uses internally if it has been established, yet.
- getSocketFactory() - Method in class com.neovisionaries.ws.client.ProxySettings
-
Get the socket factory that has been set by
ProxySettings.setSocketFactory(SocketFactory). - getSocketFactory() - Method in class com.neovisionaries.ws.client.WebSocketFactory
-
Get the socket factory that has been set by
WebSocketFactory.setSocketFactory(SocketFactory). - getSocketTimeout() - Method in class com.neovisionaries.ws.client.WebSocketFactory
-
Get the timeout value in milliseconds for socket read and write operations.
- getSSLContext() - Method in class com.neovisionaries.ws.client.ProxySettings
-
Get the SSL context that has been set by
ProxySettings.setSSLContext(SSLContext). - getSSLContext() - Method in class com.neovisionaries.ws.client.WebSocketFactory
-
Get the SSL context that has been set by
WebSocketFactory.setSSLContext(SSLContext). - getSSLSocket() - Method in exception class com.neovisionaries.ws.client.HostnameUnverifiedException
-
Get the SSL socket against which the hostname verification failed.
- getSSLSocketFactory() - Method in class com.neovisionaries.ws.client.ProxySettings
-
Get the SSL socket factory that has been set by
ProxySettings.setSSLSocketFactory(SSLSocketFactory). - getSSLSocketFactory() - Method in class com.neovisionaries.ws.client.WebSocketFactory
-
Get the SSL socket factory that has been set by
WebSocketFactory.setSSLSocketFactory(SSLSocketFactory). - getState() - Method in class com.neovisionaries.ws.client.WebSocket
-
Get the current state of this WebSocket.
- getStatusCode() - Method in class com.neovisionaries.ws.client.StatusLine
-
Get the status code.
- getStatusLine() - Method in exception class com.neovisionaries.ws.client.OpeningHandshakeException
-
Get the status line contained in the WebSocket opening handshake response from the server.
- getURI() - Method in class com.neovisionaries.ws.client.WebSocket
-
Get the URI of the WebSocket endpoint.
- getVerifyHostname() - Method in class com.neovisionaries.ws.client.WebSocketFactory
-
Get the flag which indicates whether the hostname in the server's certificate should be verified or not.
- getWebSocketFactory() - Method in class com.neovisionaries.ws.client.ProxySettings
-
Get the associated
WebSocketFactoryinstance.
H
- handleCallbackError(WebSocket, Throwable) - Method in class com.neovisionaries.ws.client.WebSocketAdapter
- handleCallbackError(WebSocket, Throwable) - Method in interface com.neovisionaries.ws.client.WebSocketListener
-
Called when an
onXxx()method threw aThrowable. - hasPayload() - Method in class com.neovisionaries.ws.client.WebSocketFrame
-
Check if this frame has payload.
- HOSTNAME_UNVERIFIED - Enum constant in enum com.neovisionaries.ws.client.WebSocketError
-
The certificate of the peer does not match the expected hostname.
- HostnameUnverifiedException - Exception Class in com.neovisionaries.ws.client
-
The certificate of the peer does not match the expected hostname.
- HostnameUnverifiedException(SSLSocket, String) - Constructor for exception class com.neovisionaries.ws.client.HostnameUnverifiedException
-
Constructor with the SSL socket and the expected hostname.
- HTTP_HEADER_FAILURE - Enum constant in enum com.neovisionaries.ws.client.WebSocketError
-
An error occurred while HTTP header section was being read.
- HTTP Proxy - Section in class com.neovisionaries.ws.client.WebSocket
I
- INCONSISTENT - Static variable in class com.neovisionaries.ws.client.WebSocketCloseCode
-
1007; 1007 indicates that an endpoint is terminating the connection because it has received data within a message that was not consistent with the type of the message (e.g., non-UTF-8 [RFC3629] data within a text message).
- INSECURE - Static variable in class com.neovisionaries.ws.client.WebSocketCloseCode
-
1015; 1015 is a reserved value and MUST NOT be set as a status code in a Close control frame by an endpoint. It is designated for use in applications expecting a status code to indicate that the connection was closed due to a failure to perform a TLS handshake (e.g., the server certificate can't be verified).
- INSUFFICENT_DATA - Enum constant in enum com.neovisionaries.ws.client.WebSocketError
-
The end of the stream has been reached unexpectedly.
- INSUFFICIENT_MEMORY_FOR_PAYLOAD - Enum constant in enum com.neovisionaries.ws.client.WebSocketError
-
OutOfMemoryErroroccurred during a trial to allocate a memory area for a frame's payload. - INTERRUPTED_IN_READING - Enum constant in enum com.neovisionaries.ws.client.WebSocketError
-
Interruption occurred while a frame was being read from the WebSocket.
- INVALID_PAYLOAD_LENGTH - Enum constant in enum com.neovisionaries.ws.client.WebSocketError
-
The payload length of a frame is invalid.
- IO_ERROR_IN_READING - Enum constant in enum com.neovisionaries.ws.client.WebSocketError
-
An I/O error occurred while a frame was being read from the WebSocket.
- IO_ERROR_IN_WRITING - Enum constant in enum com.neovisionaries.ws.client.WebSocketError
-
An I/O error occurred when a frame was tried to be sent.
- IPV4_ONLY - Enum constant in enum com.neovisionaries.ws.client.DualStackMode
-
Only use IPv4 to establish a connection.
- IPV6_ONLY - Enum constant in enum com.neovisionaries.ws.client.DualStackMode
-
Only use IPv6 to establish a connection.
- isAutoFlush() - Method in class com.neovisionaries.ws.client.WebSocket
-
Check if flush is performed automatically after
WebSocket.sendFrame(WebSocketFrame)is done. - isBinaryFrame() - Method in class com.neovisionaries.ws.client.WebSocketFrame
-
Check if this frame is a binary frame.
- isCloseFrame() - Method in class com.neovisionaries.ws.client.WebSocketFrame
-
Check if this frame is a close frame.
- isContinuationFrame() - Method in class com.neovisionaries.ws.client.WebSocketFrame
-
Check if this frame is a continuation frame.
- isControlFrame() - Method in class com.neovisionaries.ws.client.WebSocketFrame
-
Check if this frame is a control frame.
- isDataFrame() - Method in class com.neovisionaries.ws.client.WebSocketFrame
-
Check if this frame is a data frame.
- isDirectTextMessage() - Method in class com.neovisionaries.ws.client.WebSocket
-
Check if text messages are passed to listeners without string conversion.
- isExtended() - Method in class com.neovisionaries.ws.client.WebSocket
-
Check if extended use of WebSocket frames are allowed.
- isMissingCloseFrameAllowed() - Method in class com.neovisionaries.ws.client.WebSocket
-
Check if this instance allows the server to close the WebSocket connection without sending a close frame to this client.
- isOpen() - Method in class com.neovisionaries.ws.client.WebSocket
-
Check if the current state of this WebSocket is
OPEN. - isPingFrame() - Method in class com.neovisionaries.ws.client.WebSocketFrame
-
Check if this frame is a ping frame.
- isPongFrame() - Method in class com.neovisionaries.ws.client.WebSocketFrame
-
Check if this frame is a pong frame.
- isSecure() - Method in class com.neovisionaries.ws.client.ProxySettings
-
Check whether use of TLS is enabled or disabled.
- isTextFrame() - Method in class com.neovisionaries.ws.client.WebSocketFrame
-
Check if this frame is a text frame.
M
- Maximum Payload Size - Section in class com.neovisionaries.ws.client.WebSocket
- MESSAGE_CONSTRUCTION_ERROR - Enum constant in enum com.neovisionaries.ws.client.WebSocketError
-
Failed to concatenate payloads of multiple frames to construct a message.
- Missing Close Frame - Section in class com.neovisionaries.ws.client.WebSocket
N
- NO_CONNECTION_HEADER - Enum constant in enum com.neovisionaries.ws.client.WebSocketError
-
The opening handshake response does not contain
Connectionheader. - NO_MORE_FRAME - Enum constant in enum com.neovisionaries.ws.client.WebSocketError
-
No more frame can be read because the end of the input stream has been reached.
- NO_SEC_WEBSOCKET_ACCEPT_HEADER - Enum constant in enum com.neovisionaries.ws.client.WebSocketError
-
The opening handshake response does not contain
Sec-WebSocket-Acceptheader. - NO_UPGRADE_HEADER - Enum constant in enum com.neovisionaries.ws.client.WebSocketError
-
The opening handshake response does not contain
Upgradeheader. - NO_UPGRADE_IN_CONNECTION_HEADER - Enum constant in enum com.neovisionaries.ws.client.WebSocketError
-
Upgradewas not found inConnectionheader. - NO_WEBSOCKET_IN_UPGRADE_HEADER - Enum constant in enum com.neovisionaries.ws.client.WebSocketError
-
websocketwas not found inUpgradeheader. - NON_ZERO_RESERVED_BITS - Enum constant in enum com.neovisionaries.ws.client.WebSocketError
-
At least one of the reserved bits of a frame is set.
- NONE - Static variable in class com.neovisionaries.ws.client.WebSocketCloseCode
-
1005; 1005 is a reserved value and MUST NOT be set as a status code in a Close control frame by an endpoint. It is designated for use in applications expecting a status code to indicate that no status code was actually present.
- NORMAL - Static variable in class com.neovisionaries.ws.client.WebSocketCloseCode
-
1000; 1000 indicates a normal closure, meaning that the purpose for which the connection was established has been fulfilled.
- NOT_IN_CREATED_STATE - Enum constant in enum com.neovisionaries.ws.client.WebSocketError
-
The current state of the WebSocket is not CREATED.
- NOT_SWITCHING_PROTOCOLS - Enum constant in enum com.neovisionaries.ws.client.WebSocketError
-
The status code of the opening handshake response is not
101 Switching Protocols.
O
- onBinaryFrame(WebSocket, WebSocketFrame) - Method in class com.neovisionaries.ws.client.WebSocketAdapter
- onBinaryFrame(WebSocket, WebSocketFrame) - Method in interface com.neovisionaries.ws.client.WebSocketListener
-
Called when a binary frame (opcode = 0x2) was received.
- onBinaryMessage(WebSocket, byte[]) - Method in class com.neovisionaries.ws.client.WebSocketAdapter
- onBinaryMessage(WebSocket, byte[]) - Method in interface com.neovisionaries.ws.client.WebSocketListener
-
Called when a binary message was received.
- onCloseFrame(WebSocket, WebSocketFrame) - Method in class com.neovisionaries.ws.client.WebSocketAdapter
- onCloseFrame(WebSocket, WebSocketFrame) - Method in interface com.neovisionaries.ws.client.WebSocketListener
-
Called when a close frame (opcode = 0x8) was received.
- onConnected(WebSocket, Map) - Method in class com.neovisionaries.ws.client.WebSocketAdapter
- onConnected(WebSocket, Map) - Method in interface com.neovisionaries.ws.client.WebSocketListener
-
Called after the opening handshake of the WebSocket connection succeeded.
- onConnectError(WebSocket, WebSocketException) - Method in class com.neovisionaries.ws.client.WebSocketAdapter
- onConnectError(WebSocket, WebSocketException) - Method in interface com.neovisionaries.ws.client.WebSocketListener
-
Called when
WebSocket.connectAsynchronously()failed. - onContinuationFrame(WebSocket, WebSocketFrame) - Method in class com.neovisionaries.ws.client.WebSocketAdapter
- onContinuationFrame(WebSocket, WebSocketFrame) - Method in interface com.neovisionaries.ws.client.WebSocketListener
-
Called when a continuation frame (opcode = 0x0) was received.
- onDisconnected(WebSocket, WebSocketFrame, WebSocketFrame, boolean) - Method in class com.neovisionaries.ws.client.WebSocketAdapter
- onDisconnected(WebSocket, WebSocketFrame, WebSocketFrame, boolean) - Method in interface com.neovisionaries.ws.client.WebSocketListener
-
Called after the WebSocket connection was closed.
- onError(WebSocket, WebSocketException) - Method in class com.neovisionaries.ws.client.WebSocketAdapter
- onError(WebSocket, WebSocketException) - Method in interface com.neovisionaries.ws.client.WebSocketListener
-
Call when an error occurred.
- onFrame(WebSocket, WebSocketFrame) - Method in class com.neovisionaries.ws.client.WebSocketAdapter
- onFrame(WebSocket, WebSocketFrame) - Method in interface com.neovisionaries.ws.client.WebSocketListener
-
Called when a frame was received.
- onFrameError(WebSocket, WebSocketException, WebSocketFrame) - Method in class com.neovisionaries.ws.client.WebSocketAdapter
- onFrameError(WebSocket, WebSocketException, WebSocketFrame) - Method in interface com.neovisionaries.ws.client.WebSocketListener
-
Called when a WebSocket frame failed to be read from the WebSocket.
- onFrameSent(WebSocket, WebSocketFrame) - Method in class com.neovisionaries.ws.client.WebSocketAdapter
- onFrameSent(WebSocket, WebSocketFrame) - Method in interface com.neovisionaries.ws.client.WebSocketListener
-
Called when a WebSocket frame was sent to the server (but not flushed yet).
- onFrameUnsent(WebSocket, WebSocketFrame) - Method in class com.neovisionaries.ws.client.WebSocketAdapter
- onFrameUnsent(WebSocket, WebSocketFrame) - Method in interface com.neovisionaries.ws.client.WebSocketListener
-
Called when a WebSocket frame was not sent to the server because a close frame has already been sent.
- onMessageDecompressionError(WebSocket, WebSocketException, byte[]) - Method in class com.neovisionaries.ws.client.WebSocketAdapter
- onMessageDecompressionError(WebSocket, WebSocketException, byte[]) - Method in interface com.neovisionaries.ws.client.WebSocketListener
-
Called when a message failed to be decompressed.
- onMessageError(WebSocket, WebSocketException, List) - Method in class com.neovisionaries.ws.client.WebSocketAdapter
- onMessageError(WebSocket, WebSocketException, List) - Method in interface com.neovisionaries.ws.client.WebSocketListener
-
Called when it failed to concatenate payloads of multiple frames to construct a message.
- onPingFrame(WebSocket, WebSocketFrame) - Method in class com.neovisionaries.ws.client.WebSocketAdapter
- onPingFrame(WebSocket, WebSocketFrame) - Method in interface com.neovisionaries.ws.client.WebSocketListener
-
Called when a ping frame (opcode = 0x9) was received.
- onPongFrame(WebSocket, WebSocketFrame) - Method in class com.neovisionaries.ws.client.WebSocketAdapter
- onPongFrame(WebSocket, WebSocketFrame) - Method in interface com.neovisionaries.ws.client.WebSocketListener
-
Called when a pong frame (opcode = 0xA) was received.
- onSendError(WebSocket, WebSocketException, WebSocketFrame) - Method in class com.neovisionaries.ws.client.WebSocketAdapter
- onSendError(WebSocket, WebSocketException, WebSocketFrame) - Method in interface com.neovisionaries.ws.client.WebSocketListener
-
Called when an error occurred when a frame was tried to be sent to the server.
- onSendingFrame(WebSocket, WebSocketFrame) - Method in class com.neovisionaries.ws.client.WebSocketAdapter
- onSendingFrame(WebSocket, WebSocketFrame) - Method in interface com.neovisionaries.ws.client.WebSocketListener
-
Called before a WebSocket frame is sent.
- onSendingHandshake(WebSocket, String, List) - Method in class com.neovisionaries.ws.client.WebSocketAdapter
- onSendingHandshake(WebSocket, String, List) - Method in interface com.neovisionaries.ws.client.WebSocketListener
-
Called before an opening handshake is sent to the server.
- onStateChanged(WebSocket, WebSocketState) - Method in class com.neovisionaries.ws.client.WebSocketAdapter
- onStateChanged(WebSocket, WebSocketState) - Method in interface com.neovisionaries.ws.client.WebSocketListener
-
Called after the state of the WebSocket changed.
- onTextFrame(WebSocket, WebSocketFrame) - Method in class com.neovisionaries.ws.client.WebSocketAdapter
- onTextFrame(WebSocket, WebSocketFrame) - Method in interface com.neovisionaries.ws.client.WebSocketListener
-
Called when a text frame (opcode = 0x1) was received.
- onTextMessage(WebSocket, byte[]) - Method in class com.neovisionaries.ws.client.WebSocketAdapter
- onTextMessage(WebSocket, byte[]) - Method in interface com.neovisionaries.ws.client.WebSocketListener
-
Called when a text message was received instead of
WebSocketListener.onTextMessage(WebSocket, String)whenWebSocket.isDirectTextMessage()returnstrue. - onTextMessage(WebSocket, String) - Method in class com.neovisionaries.ws.client.WebSocketAdapter
- onTextMessage(WebSocket, String) - Method in interface com.neovisionaries.ws.client.WebSocketListener
-
Called when a text message was received.
- onTextMessageError(WebSocket, WebSocketException, byte[]) - Method in class com.neovisionaries.ws.client.WebSocketAdapter
- onTextMessageError(WebSocket, WebSocketException, byte[]) - Method in interface com.neovisionaries.ws.client.WebSocketListener
-
Called when it failed to convert payload data into a string.
- onThreadCreated(WebSocket, ThreadType, Thread) - Method in class com.neovisionaries.ws.client.WebSocketAdapter
- onThreadCreated(WebSocket, ThreadType, Thread) - Method in interface com.neovisionaries.ws.client.WebSocketListener
-
Called between after a thread is created and before the thread's
start()method is called. - onThreadStarted(WebSocket, ThreadType, Thread) - Method in class com.neovisionaries.ws.client.WebSocketAdapter
- onThreadStarted(WebSocket, ThreadType, Thread) - Method in interface com.neovisionaries.ws.client.WebSocketListener
-
Called at the very beginning of the thread's
run()method implementation. - onThreadStopping(WebSocket, ThreadType, Thread) - Method in class com.neovisionaries.ws.client.WebSocketAdapter
- onThreadStopping(WebSocket, ThreadType, Thread) - Method in interface com.neovisionaries.ws.client.WebSocketListener
-
Called at the very end of the thread's
run()method implementation. - onUnexpectedError(WebSocket, WebSocketException) - Method in class com.neovisionaries.ws.client.WebSocketAdapter
- onUnexpectedError(WebSocket, WebSocketException) - Method in interface com.neovisionaries.ws.client.WebSocketListener
-
Called when an uncaught throwable was detected in either the reading thread (which reads frames from the server) or the writing thread (which sends frames to the server).
- OPEN - Enum constant in enum com.neovisionaries.ws.client.WebSocketState
-
The WebSocket connection is established (= the opening handshake has succeeded) and usable.
- OPENING_HAHDSHAKE_REQUEST_FAILURE - Enum constant in enum com.neovisionaries.ws.client.WebSocketError
-
Failed to send an opening handshake request to the server.
- OPENING_HANDSHAKE_RESPONSE_FAILURE - Enum constant in enum com.neovisionaries.ws.client.WebSocketError
-
Failed to read an opening handshake response from the server.
- OpeningHandshakeException - Exception Class in com.neovisionaries.ws.client
-
An exception raised due to a violation against the WebSocket protocol.
- OVERSIZE - Static variable in class com.neovisionaries.ws.client.WebSocketCloseCode
-
1009; 1009 indicates that an endpoint is terminating the connection because it has received a message that is too big for it to process.
P
- parse(String) - Static method in class com.neovisionaries.ws.client.WebSocketExtension
-
Parse a string as a
WebSocketExtension. - PayloadGenerator - Interface in com.neovisionaries.ws.client
-
Payload generator.
- PERMESSAGE_DEFLATE - Static variable in class com.neovisionaries.ws.client.WebSocketExtension
-
The name of
permessage-deflateextension that is defined in 7. The "permessage-deflate" Extension in RFC 7692. - PERMESSAGE_DEFLATE_INVALID_MAX_WINDOW_BITS - Enum constant in enum com.neovisionaries.ws.client.WebSocketError
-
The value of
server_max_window_bitsparameter orclient_max_window_bitsparameter ofpermessage-deflateextension is invalid. - PERMESSAGE_DEFLATE_UNSUPPORTED_PARAMETER - Enum constant in enum com.neovisionaries.ws.client.WebSocketError
-
permessage-deflateextension contains an unsupported parameter. - PING - Static variable in class com.neovisionaries.ws.client.WebSocketOpcode
-
Opcode for "ping" (0x9).
- PONG - Static variable in class com.neovisionaries.ws.client.WebSocketOpcode
-
Opcode for "pong" (0xA).
- PROXY_HANDSHAKE_ERROR - Enum constant in enum com.neovisionaries.ws.client.WebSocketError
-
Handshake with a proxy server failed.
- ProxySettings - Class in com.neovisionaries.ws.client
-
Proxy settings.
R
- READING_THREAD - Enum constant in enum com.neovisionaries.ws.client.ThreadType
-
A thread which reads WebSocket frames from the server (
ReadingThread). - Reconnection - Section in class com.neovisionaries.ws.client.WebSocket
- recreate() - Method in class com.neovisionaries.ws.client.WebSocket
-
Create a new
WebSocketinstance that has the same settings as this instance. - recreate(int) - Method in class com.neovisionaries.ws.client.WebSocket
-
Create a new
WebSocketinstance that has the same settings as this instance. - Register Listener - Section in class com.neovisionaries.ws.client.WebSocket
- removeExtension(WebSocketExtension) - Method in class com.neovisionaries.ws.client.WebSocket
-
Remove an extension from
Sec-WebSocket-Extension. - removeExtensions(String) - Method in class com.neovisionaries.ws.client.WebSocket
-
Remove extensions from
Sec-WebSocket-Extensionby an extension name. - removeHeaders(String) - Method in class com.neovisionaries.ws.client.WebSocket
-
Remove pairs of extra HTTP headers.
- removeListener(WebSocketListener) - Method in class com.neovisionaries.ws.client.WebSocket
-
Remove a listener from this WebSocket.
- removeListeners(List) - Method in class com.neovisionaries.ws.client.WebSocket
-
Remove listeners.
- removeProtocol(String) - Method in class com.neovisionaries.ws.client.WebSocket
-
Remove a protocol from
Sec-WebSocket-Protocol. - reset() - Method in class com.neovisionaries.ws.client.ProxySettings
-
Reset the proxy settings.
S
- sendBinary(byte[]) - Method in class com.neovisionaries.ws.client.WebSocket
-
Send a binary message to the server.
- sendBinary(byte[], boolean) - Method in class com.neovisionaries.ws.client.WebSocket
-
Send a binary frame to the server.
- sendClose() - Method in class com.neovisionaries.ws.client.WebSocket
-
Send a close frame to the server.
- sendClose(int) - Method in class com.neovisionaries.ws.client.WebSocket
-
Send a close frame to the server.
- sendClose(int, String) - Method in class com.neovisionaries.ws.client.WebSocket
-
Send a close frame to the server.
- sendContinuation() - Method in class com.neovisionaries.ws.client.WebSocket
-
Send a continuation frame to the server.
- sendContinuation(boolean) - Method in class com.neovisionaries.ws.client.WebSocket
-
Send a continuation frame to the server.
- sendContinuation(byte[]) - Method in class com.neovisionaries.ws.client.WebSocket
-
Send a continuation frame to the server.
- sendContinuation(byte[], boolean) - Method in class com.neovisionaries.ws.client.WebSocket
-
Send a continuation frame to the server.
- sendContinuation(String) - Method in class com.neovisionaries.ws.client.WebSocket
-
Send a continuation frame to the server.
- sendContinuation(String, boolean) - Method in class com.neovisionaries.ws.client.WebSocket
-
Send a continuation frame to the server.
- sendFrame(WebSocketFrame) - Method in class com.neovisionaries.ws.client.WebSocket
-
Send a WebSocket frame to the server.
- Send Frames - Section in class com.neovisionaries.ws.client.WebSocket
- sendPing() - Method in class com.neovisionaries.ws.client.WebSocket
-
Send a ping frame to the server.
- sendPing(byte[]) - Method in class com.neovisionaries.ws.client.WebSocket
-
Send a ping frame to the server.
- sendPing(String) - Method in class com.neovisionaries.ws.client.WebSocket
-
Send a ping frame to the server.
- Send Ping/Pong Frames Periodically - Section in class com.neovisionaries.ws.client.WebSocket
- sendPong() - Method in class com.neovisionaries.ws.client.WebSocket
-
Send a pong frame to the server.
- sendPong(byte[]) - Method in class com.neovisionaries.ws.client.WebSocket
-
Send a pong frame to the server.
- sendPong(String) - Method in class com.neovisionaries.ws.client.WebSocket
-
Send a pong frame to the server.
- sendText(String) - Method in class com.neovisionaries.ws.client.WebSocket
-
Send a text message to the server.
- sendText(String, boolean) - Method in class com.neovisionaries.ws.client.WebSocket
-
Send a text frame to the server.
- setAutoFlush(boolean) - Method in class com.neovisionaries.ws.client.WebSocket
-
Enable or disable auto-flush of sent frames.
- setCloseFramePayload(int, String) - Method in class com.neovisionaries.ws.client.WebSocketFrame
-
Set the payload that conforms to the payload format of close frames.
- setConnectionTimeout(int) - Method in class com.neovisionaries.ws.client.WebSocketFactory
-
Set the timeout value in milliseconds for socket connection.
- setCredentials(String, String) - Method in class com.neovisionaries.ws.client.ProxySettings
-
Set credentials for authentication at the proxy server.
- setDirectTextMessage(boolean) - Method in class com.neovisionaries.ws.client.WebSocket
-
Set whether to receive text messages directly as byte arrays without string conversion.
- setDualStackFallbackDelay(int) - Method in class com.neovisionaries.ws.client.WebSocketFactory
-
Set the dual stack fallback delay in milliseconds that will be applied when establishing a socket connection.
- setDualStackMode(DualStackMode) - Method in class com.neovisionaries.ws.client.WebSocketFactory
-
Set the dual stack mode that will be applied when establishing a socket connection.
- setExtended(boolean) - Method in class com.neovisionaries.ws.client.WebSocket
-
Allow or disallow extended use of WebSocket frames.
- setFin(boolean) - Method in class com.neovisionaries.ws.client.WebSocketFrame
-
Set the value of FIN bit.
- setFrameQueueSize(int) - Method in class com.neovisionaries.ws.client.WebSocket
-
Set the size of the frame queue.
- setHost(String) - Method in class com.neovisionaries.ws.client.ProxySettings
-
Set the host name of the proxy server.
- setId(String) - Method in class com.neovisionaries.ws.client.ProxySettings
-
Set the ID for authentication at the proxy server.
- setMaxPayloadSize(int) - Method in class com.neovisionaries.ws.client.WebSocket
-
Set the maximum payload size.
- setMissingCloseFrameAllowed(boolean) - Method in class com.neovisionaries.ws.client.WebSocket
-
Set whether to allow the server to close the WebSocket connection without sending a close frame to this client.
- setOpcode(int) - Method in class com.neovisionaries.ws.client.WebSocketFrame
-
Set the opcode
- setParameter(String, String) - Method in class com.neovisionaries.ws.client.WebSocketExtension
-
Set a value to the specified parameter.
- setPassword(String) - Method in class com.neovisionaries.ws.client.ProxySettings
-
Set the password for authentication at the proxy server.
- setPayload(byte[]) - Method in class com.neovisionaries.ws.client.WebSocketFrame
-
Set the unmasked payload.
- setPayload(String) - Method in class com.neovisionaries.ws.client.WebSocketFrame
-
Set the payload.
- setPingInterval(long) - Method in class com.neovisionaries.ws.client.WebSocket
-
Set the interval of periodical ping frames.
- setPingPayloadGenerator(PayloadGenerator) - Method in class com.neovisionaries.ws.client.WebSocket
-
Set the generator of payload of ping frames that are sent automatically.
- setPingSenderName(String) - Method in class com.neovisionaries.ws.client.WebSocket
-
Set the name of the
Timerthat sends ping frames periodically. - setPongInterval(long) - Method in class com.neovisionaries.ws.client.WebSocket
-
Set the interval of periodical pong frames.
- setPongPayloadGenerator(PayloadGenerator) - Method in class com.neovisionaries.ws.client.WebSocket
-
Set the generator of payload of pong frames that are sent automatically.
- setPongSenderName(String) - Method in class com.neovisionaries.ws.client.WebSocket
-
Set the name of the
Timerthat sends pong frames periodically. - setPort(int) - Method in class com.neovisionaries.ws.client.ProxySettings
-
Set the port number of the proxy server.
- setRsv1(boolean) - Method in class com.neovisionaries.ws.client.WebSocketFrame
-
Set the value of RSV1 bit.
- setRsv2(boolean) - Method in class com.neovisionaries.ws.client.WebSocketFrame
-
Set the value of RSV2 bit.
- setRsv3(boolean) - Method in class com.neovisionaries.ws.client.WebSocketFrame
-
Set the value of RSV3 bit.
- setSecure(boolean) - Method in class com.neovisionaries.ws.client.ProxySettings
-
Enable or disable use of TLS.
- setServer(String) - Method in class com.neovisionaries.ws.client.ProxySettings
-
Set the proxy server by a URI.
- setServer(URI) - Method in class com.neovisionaries.ws.client.ProxySettings
-
Set the proxy server by a URI.
- setServer(URL) - Method in class com.neovisionaries.ws.client.ProxySettings
-
Set the proxy server by a URL.
- setServerName(String) - Method in class com.neovisionaries.ws.client.ProxySettings
-
Set a server name for SNI (Server Name Indication).
- setServerName(String) - Method in class com.neovisionaries.ws.client.WebSocketFactory
-
Set a server name for SNI (Server Name Indication).
- setServerNames(String[]) - Method in class com.neovisionaries.ws.client.ProxySettings
-
Set server names for SNI (Server Name Indication).
- setServerNames(String[]) - Method in class com.neovisionaries.ws.client.WebSocketFactory
-
Set server names for SNI (Server Name Indication).
- setSocketFactory(SocketFactory) - Method in class com.neovisionaries.ws.client.ProxySettings
-
Set a socket factory.
- setSocketFactory(SocketFactory) - Method in class com.neovisionaries.ws.client.WebSocketFactory
-
Set a socket factory.
- setSocketTimeout(int) - Method in class com.neovisionaries.ws.client.WebSocketFactory
-
Set the timeout value in milliseconds for socket read and write operations.
- setSSLContext(SSLContext) - Method in class com.neovisionaries.ws.client.ProxySettings
-
Set an SSL context to get a socket factory.
- setSSLContext(SSLContext) - Method in class com.neovisionaries.ws.client.WebSocketFactory
-
Set an SSL context to get a socket factory.
- setSSLSocketFactory(SSLSocketFactory) - Method in class com.neovisionaries.ws.client.ProxySettings
-
Set an SSL socket factory.
- setSSLSocketFactory(SSLSocketFactory) - Method in class com.neovisionaries.ws.client.WebSocketFactory
-
Set an SSL socket factory.
- setUserInfo(String) - Method in class com.neovisionaries.ws.client.WebSocket
-
Set the credentials to connect to the WebSocket endpoint.
- setUserInfo(String, String) - Method in class com.neovisionaries.ws.client.WebSocket
-
Set the credentials to connect to the WebSocket endpoint.
- setVerifyHostname(boolean) - Method in class com.neovisionaries.ws.client.WebSocketFactory
-
Set the flag which indicates whether the hostname in the server's certificate should be verified or not.
- SOCKET_CONNECT_ERROR - Enum constant in enum com.neovisionaries.ws.client.WebSocketError
-
Socket.connect()failed. - SOCKET_INPUT_STREAM_FAILURE - Enum constant in enum com.neovisionaries.ws.client.WebSocketError
-
Failed to get the input stream of the raw socket.
- SOCKET_OUTPUT_STREAM_FAILURE - Enum constant in enum com.neovisionaries.ws.client.WebSocketError
-
Failed to get the output stream of the raw socket.
- SOCKET_OVERLAY_ERROR - Enum constant in enum com.neovisionaries.ws.client.WebSocketError
-
Failed to overlay an existing socket.
- SocketInitiator - Class in com.neovisionaries.ws.client
-
Lets multiple sockets race the given IP addresses until one has been established.
- SocketInitiator(SocketFactory, Address, int, String[], DualStackMode, int) - Constructor for class com.neovisionaries.ws.client.SocketInitiator
- SSL_HANDSHAKE_ERROR - Enum constant in enum com.neovisionaries.ws.client.WebSocketError
-
SSL handshake with a WebSocket endpoint failed.
- STATUS_LINE_BAD_FORMAT - Enum constant in enum com.neovisionaries.ws.client.WebSocketError
-
The status line of the opening handshake response is badly formatted.
- STATUS_LINE_EMPTY - Enum constant in enum com.neovisionaries.ws.client.WebSocketError
-
The status line of the opening handshake response is empty.
- StatusLine - Class in com.neovisionaries.ws.client
-
HTTP status line returned from an HTTP server.
T
- TEXT - Static variable in class com.neovisionaries.ws.client.WebSocketOpcode
-
Opcode for "text frame" (0x1).
- TEXT_MESSAGE_CONSTRUCTION_ERROR - Enum constant in enum com.neovisionaries.ws.client.WebSocketError
-
Failed to convert payload data into a string.
- Thread Callbacks - Section in class com.neovisionaries.ws.client.WebSocket
- ThreadType - Enum in com.neovisionaries.ws.client
-
Types of threads which are created internally in the implementation.
- TOO_LONG_CONTROL_FRAME_PAYLOAD - Enum constant in enum com.neovisionaries.ws.client.WebSocketError
-
The payload size of a control frame exceeds the maximum size (125 bytes).
- TOO_LONG_PAYLOAD - Enum constant in enum com.neovisionaries.ws.client.WebSocketError
-
The payload length of a frame exceeds the maximum array size in Java.
- toString() - Method in class com.neovisionaries.ws.client.StatusLine
-
Get the string representation of this instance, which is equal to the raw status line.
- toString() - Method in class com.neovisionaries.ws.client.WebSocketExtension
-
Stringify this object into the format "{name}[; {key}[={value}]]*".
- toString() - Method in class com.neovisionaries.ws.client.WebSocketFrame
U
- UNACCEPTABLE - Static variable in class com.neovisionaries.ws.client.WebSocketCloseCode
-
1003; 1003 indicates that an endpoint is terminating the connection because it has received a type of data it cannot accept (e.g., an endpoint that understands only text data MAY send this if it receives a binary message).
- UNCONFORMED - Static variable in class com.neovisionaries.ws.client.WebSocketCloseCode
-
1002; 1002 indicates that an endpoint is terminating the connection due to a protocol error.
- UNEXPECTED - Static variable in class com.neovisionaries.ws.client.WebSocketCloseCode
-
1011; 1011 indicates that a server is terminating the connection because it encountered an unexpected condition that prevented it from fulfilling the request.
- UNEXPECTED_CONTINUATION_FRAME - Enum constant in enum com.neovisionaries.ws.client.WebSocketError
-
A continuation frame was detected although a continuation had not started.
- UNEXPECTED_ERROR_IN_READING_THREAD - Enum constant in enum com.neovisionaries.ws.client.WebSocketError
-
An uncaught throwable was detected in the reading thread (which reads frames from the server).
- UNEXPECTED_ERROR_IN_WRITING_THREAD - Enum constant in enum com.neovisionaries.ws.client.WebSocketError
-
An uncaught throwable was detected in the writing thread (which sends frames to the server).
- UNEXPECTED_RESERVED_BIT - Enum constant in enum com.neovisionaries.ws.client.WebSocketError
-
A reserved bit of a frame has an unexpected value.
- UNEXPECTED_SEC_WEBSOCKET_ACCEPT_HEADER - Enum constant in enum com.neovisionaries.ws.client.WebSocketError
-
The value of
Sec-WebSocket-Acceptheader is different from the expected one. - UNEXTENDED - Static variable in class com.neovisionaries.ws.client.WebSocketCloseCode
-
1010; 1010 indicates that an endpoint (client) is terminating the connection because it has expected the server to negotiate one or more extension, but the server didn't return them in the response message of the WebSocket handshake. The list of extensions that are needed SHOULD appear in the /reason/ part of the Close frame. Note that this status code is not used by the server, because it can fail the WebSocket handshake instead.
- UNKNOWN_OPCODE - Enum constant in enum com.neovisionaries.ws.client.WebSocketError
-
A frame has an unknown opcode.
- UNSUPPORTED_EXTENSION - Enum constant in enum com.neovisionaries.ws.client.WebSocketError
-
The extension contained in
Sec-WebSocket-Extensionsheader is not supported. - UNSUPPORTED_PROTOCOL - Enum constant in enum com.neovisionaries.ws.client.WebSocketError
-
The protocol contained in
Sec-WebSocket-Protocolheader is not supported.
V
- valueOf(String) - Static method in enum com.neovisionaries.ws.client.DualStackMode
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum com.neovisionaries.ws.client.ThreadType
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum com.neovisionaries.ws.client.WebSocketError
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum com.neovisionaries.ws.client.WebSocketState
-
Returns the enum constant of this type with the specified name.
- values() - Static method in enum com.neovisionaries.ws.client.DualStackMode
-
Returns an array containing the constants of this enum type, in the order they are declared.
- values() - Static method in enum com.neovisionaries.ws.client.ThreadType
-
Returns an array containing the constants of this enum type, in the order they are declared.
- values() - Static method in enum com.neovisionaries.ws.client.WebSocketError
-
Returns an array containing the constants of this enum type, in the order they are declared.
- values() - Static method in enum com.neovisionaries.ws.client.WebSocketState
-
Returns an array containing the constants of this enum type, in the order they are declared.
- VIOLATED - Static variable in class com.neovisionaries.ws.client.WebSocketCloseCode
-
1008; 1008 indicates that an endpoint is terminating the connection because it has received a message that violates its policy. This is a generic status code that can be returned when there is no other more suitable status code (e.g., 1003 or 1009) or if there is a need to hide specific details about the policy.
W
- WebSocket - Class in com.neovisionaries.ws.client
-
WebSocket.
- WebSocketAdapter - Class in com.neovisionaries.ws.client
-
An empty implementation of
WebSocketListenerinterface. - WebSocketAdapter() - Constructor for class com.neovisionaries.ws.client.WebSocketAdapter
- WebSocketCloseCode - Class in com.neovisionaries.ws.client
-
Close code.
- WebSocketError - Enum in com.neovisionaries.ws.client
-
WebSocket error codes.
- WebSocketException - Exception Class in com.neovisionaries.ws.client
-
WebSocket exception.
- WebSocketException(WebSocketError) - Constructor for exception class com.neovisionaries.ws.client.WebSocketException
- WebSocketException(WebSocketError, String) - Constructor for exception class com.neovisionaries.ws.client.WebSocketException
- WebSocketException(WebSocketError, String, Throwable) - Constructor for exception class com.neovisionaries.ws.client.WebSocketException
- WebSocketException(WebSocketError, Throwable) - Constructor for exception class com.neovisionaries.ws.client.WebSocketException
- WebSocketExtension - Class in com.neovisionaries.ws.client
-
A class to hold the name and the parameters of a WebSocket extension.
- WebSocketExtension(WebSocketExtension) - Constructor for class com.neovisionaries.ws.client.WebSocketExtension
-
Copy constructor.
- WebSocketExtension(String) - Constructor for class com.neovisionaries.ws.client.WebSocketExtension
-
Constructor with an extension name.
- WebSocketFactory - Class in com.neovisionaries.ws.client
-
Factory to create
WebSocketinstances. - WebSocketFactory() - Constructor for class com.neovisionaries.ws.client.WebSocketFactory
-
Constructor.
- WebSocketFactory(WebSocketFactory) - Constructor for class com.neovisionaries.ws.client.WebSocketFactory
-
Copy constructor.
- WebSocketFrame - Class in com.neovisionaries.ws.client
-
WebSocket frame.
- WebSocketFrame() - Constructor for class com.neovisionaries.ws.client.WebSocketFrame
- WebSocketListener - Interface in com.neovisionaries.ws.client
-
Listener interface to receive WebSocket events.
- WebSocketOpcode - Class in com.neovisionaries.ws.client
-
Opcode.
- WebSocketState - Enum in com.neovisionaries.ws.client
-
WebSocket state.
- WRITING_THREAD - Enum constant in enum com.neovisionaries.ws.client.ThreadType
-
A thread which sends WebSocket frames to the server (
WritingThread).
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form