- DEBUG - Static variable in class org.java_websocket.WebSocketImpl
-
- DECODE - Static variable in class org.java_websocket.util.Base64
-
Specify decoding in first bit.
- decode(byte[]) - Static method in class org.java_websocket.util.Base64
-
Low-level access to decoding ASCII characters in
the form of a byte array.
- decode(byte[], int, int, int) - Static method in class org.java_websocket.util.Base64
-
Low-level access to decoding ASCII characters in
the form of a byte array.
- decode(String) - Static method in class org.java_websocket.util.Base64
-
Decodes data from Base64 notation, automatically
detecting gzip-compressed data and decompressing it.
- decode(String, int) - Static method in class org.java_websocket.util.Base64
-
Decodes data from Base64 notation, automatically
detecting gzip-compressed data and decompressing it.
- decode(ByteBuffer) - Method in class org.java_websocket.WebSocketImpl
-
- decodeFileToFile(String, String) - Static method in class org.java_websocket.util.Base64
-
Reads infile and decodes it to outfile.
- decodeFromFile(String) - Static method in class org.java_websocket.util.Base64
-
Convenience method for reading a base64-encoded
file and decoding it.
- DECODERS - Static variable in class org.java_websocket.server.WebSocketServer
-
- decodeToFile(String, String) - Static method in class org.java_websocket.util.Base64
-
Convenience method for decoding data to a file.
- decodeToObject(String) - Static method in class org.java_websocket.util.Base64
-
Attempts to decode Base64 data and deserialize a Java
Object within.
- decodeToObject(String, int, ClassLoader) - Static method in class org.java_websocket.util.Base64
-
Attempts to decode Base64 data and deserialize a Java
Object within.
- DEFAULT_PORT - Static variable in interface org.java_websocket.WebSocket
-
The default port of WebSockets, as defined in the spec.
- DEFAULT_WSS_PORT - Static variable in interface org.java_websocket.WebSocket
-
- defaultdraftlist - Static variable in class org.java_websocket.WebSocketImpl
-
- DefaultSSLWebSocketClientFactory - Class in org.java_websocket.client
-
- DefaultSSLWebSocketClientFactory(SSLContext) - Constructor for class org.java_websocket.client.DefaultSSLWebSocketClientFactory
-
- DefaultSSLWebSocketClientFactory(SSLContext, ExecutorService) - Constructor for class org.java_websocket.client.DefaultSSLWebSocketClientFactory
-
- DefaultSSLWebSocketServerFactory - Class in org.java_websocket.server
-
- DefaultSSLWebSocketServerFactory(SSLContext) - Constructor for class org.java_websocket.server.DefaultSSLWebSocketServerFactory
-
- DefaultSSLWebSocketServerFactory(SSLContext, ExecutorService) - Constructor for class org.java_websocket.server.DefaultSSLWebSocketServerFactory
-
- DefaultWebSocketClientFactory - Class in org.java_websocket.client
-
- DefaultWebSocketClientFactory(WebSocketClient) - Constructor for class org.java_websocket.client.DefaultWebSocketClientFactory
-
- DefaultWebSocketServerFactory - Class in org.java_websocket.server
-
- DefaultWebSocketServerFactory() - Constructor for class org.java_websocket.server.DefaultWebSocketServerFactory
-
- DO_BREAK_LINES - Static variable in class org.java_websocket.util.Base64
-
Do break lines when encoding.
- DONT_GUNZIP - Static variable in class org.java_websocket.util.Base64
-
Specify that gzipped data should not be automatically gunzipped.
- Draft - Class in org.java_websocket.drafts
-
Base class for everything of a websocket specification which is not common such as the way the handshake is read or frames are transfered.
- Draft() - Constructor for class org.java_websocket.drafts.Draft
-
- Draft.CloseHandshakeType - Enum in org.java_websocket.drafts
-
- Draft.HandshakeState - Enum in org.java_websocket.drafts
-
- Draft_10 - Class in org.java_websocket.drafts
-
- Draft_10() - Constructor for class org.java_websocket.drafts.Draft_10
-
- Draft_17 - Class in org.java_websocket.drafts
-
- Draft_17() - Constructor for class org.java_websocket.drafts.Draft_17
-
- Draft_75 - Class in org.java_websocket.drafts
-
- Draft_75() - Constructor for class org.java_websocket.drafts.Draft_75
-
- Draft_76 - Class in org.java_websocket.drafts
-
- Draft_76() - Constructor for class org.java_websocket.drafts.Draft_76
-
- emptyarray - Static variable in class org.java_websocket.framing.FramedataImpl1
-
- emptybuffer - Static variable in class org.java_websocket.SSLSocketChannel2
-
- ENCODE - Static variable in class org.java_websocket.util.Base64
-
Specify encoding in first bit.
- encode(ByteBuffer, ByteBuffer) - Static method in class org.java_websocket.util.Base64
-
Performs Base64 encoding on the raw
ByteBuffer,
writing it to the encoded
ByteBuffer.
- encode(ByteBuffer, CharBuffer) - Static method in class org.java_websocket.util.Base64
-
Performs Base64 encoding on the raw
ByteBuffer,
writing it to the encoded
CharBuffer.
- encodeBytes(byte[]) - Static method in class org.java_websocket.util.Base64
-
Encodes a byte array into Base64 notation.
- encodeBytes(byte[], int) - Static method in class org.java_websocket.util.Base64
-
Encodes a byte array into Base64 notation.
- encodeBytes(byte[], int, int) - Static method in class org.java_websocket.util.Base64
-
Encodes a byte array into Base64 notation.
- encodeBytes(byte[], int, int, int) - Static method in class org.java_websocket.util.Base64
-
Encodes a byte array into Base64 notation.
- encodeBytesToBytes(byte[]) - Static method in class org.java_websocket.util.Base64
-
- encodeBytesToBytes(byte[], int, int, int) - Static method in class org.java_websocket.util.Base64
-
- encodeFileToFile(String, String) - Static method in class org.java_websocket.util.Base64
-
Reads infile and encodes it to outfile.
- encodeFromFile(String) - Static method in class org.java_websocket.util.Base64
-
Convenience method for reading a binary file
and base64-encoding it.
- encodeObject(Serializable) - Static method in class org.java_websocket.util.Base64
-
Serializes an object and returns the Base64-encoded
version of that serialized object.
- encodeObject(Serializable, int) - Static method in class org.java_websocket.util.Base64
-
Serializes an object and returns the Base64-encoded
version of that serialized object.
- encodeToFile(byte[], String) - Static method in class org.java_websocket.util.Base64
-
Convenience method for encoding data to a file.
- END_OF_FRAME - Static variable in class org.java_websocket.drafts.Draft_75
-
The byte representing the end of a WebSocket text frame.
- engineResult - Variable in class org.java_websocket.SSLSocketChannel2
-
- eot() - Method in class org.java_websocket.WebSocketImpl
-
- exec - Variable in class org.java_websocket.client.DefaultSSLWebSocketClientFactory
-
- exec - Variable in class org.java_websocket.server.DefaultSSLWebSocketServerFactory
-
- exec - Variable in class org.java_websocket.SSLSocketChannel2
-
- EXTENSION - Static variable in interface org.java_websocket.framing.CloseFrame
-
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.
- onClose(int, String, boolean) - Method in class org.java_websocket.client.WebSocketClient
-
- onClose(WebSocket, int, String, boolean) - Method in class org.java_websocket.server.WebSocketServer
-
Called after the websocket connection has been closed.
- onCloseInitiated(int, String) - Method in class org.java_websocket.client.WebSocketClient
-
- onCloseInitiated(WebSocket, int, String) - Method in class org.java_websocket.server.WebSocketServer
-
- onClosing(int, String, boolean) - Method in class org.java_websocket.client.WebSocketClient
-
- onClosing(WebSocket, int, String, boolean) - Method in class org.java_websocket.server.WebSocketServer
-
- onConnect(SelectionKey) - Method in class org.java_websocket.server.WebSocketServer
-
Returns whether a new connection shall be accepted or not.
Therefore method is well suited to implement some kind of connection limitation.
- onError(Exception) - Method in class org.java_websocket.client.WebSocketClient
-
- onError(WebSocket, Exception) - Method in class org.java_websocket.server.WebSocketServer
-
Called when errors occurs.
- onMessage(String) - Method in class org.java_websocket.client.WebSocketClient
-
- onMessage(ByteBuffer) - Method in class org.java_websocket.client.WebSocketClient
-
- onMessage(WebSocket, String) - Method in class org.java_websocket.server.WebSocketServer
-
Callback for string messages received from the remote host
- onMessage(WebSocket, ByteBuffer) - Method in class org.java_websocket.server.WebSocketServer
-
Callback for binary messages received from the remote host
- onOpen(ServerHandshake) - Method in class org.java_websocket.client.WebSocketClient
-
- onOpen(WebSocket, ClientHandshake) - Method in class org.java_websocket.server.WebSocketServer
-
Called after an opening handshake has been performed and the given websocket is ready to be written on.
- onWebsocketClose(WebSocket, int, String, boolean) - Method in class org.java_websocket.client.WebSocketClient
-
Calls subclass' implementation of onClose.
- onWebsocketClose(WebSocket, int, String, boolean) - Method in class org.java_websocket.server.WebSocketServer
-
- onWebsocketClose(WebSocket, int, String, boolean) - Method in interface org.java_websocket.WebSocketListener
-
Called after WebSocket#close is explicity called, or when the
other end of the WebSocket connection is closed.
- onWebsocketCloseInitiated(WebSocket, int, String) - Method in class org.java_websocket.client.WebSocketClient
-
- onWebsocketCloseInitiated(WebSocket, int, String) - Method in class org.java_websocket.server.WebSocketServer
-
- onWebsocketCloseInitiated(WebSocket, int, String) - Method in interface org.java_websocket.WebSocketListener
-
send when this peer sends a close handshake
- onWebsocketClosing(WebSocket, int, String, boolean) - Method in class org.java_websocket.client.WebSocketClient
-
- onWebsocketClosing(WebSocket, int, String, boolean) - Method in class org.java_websocket.server.WebSocketServer
-
- onWebsocketClosing(WebSocket, int, String, boolean) - Method in interface org.java_websocket.WebSocketListener
-
called as soon as no further frames are accepted
- onWebsocketError(WebSocket, Exception) - Method in class org.java_websocket.client.WebSocketClient
-
Calls subclass' implementation of onIOError.
- onWebsocketError(WebSocket, Exception) - Method in class org.java_websocket.server.WebSocketServer
-
- onWebsocketError(WebSocket, Exception) - Method in interface org.java_websocket.WebSocketListener
-
Called if an exception worth noting occurred.
- onWebsocketHandshakeReceivedAsClient(WebSocket, ClientHandshake, ServerHandshake) - Method in class org.java_websocket.WebSocketAdapter
-
- onWebsocketHandshakeReceivedAsClient(WebSocket, ClientHandshake, ServerHandshake) - Method in interface org.java_websocket.WebSocketListener
-
Called on the client side when the socket connection is first established, and the WebSocketImpl
handshake response has been received.
- onWebsocketHandshakeReceivedAsServer(WebSocket, Draft, ClientHandshake) - Method in class org.java_websocket.WebSocketAdapter
-
This default implementation does not do anything.
- onWebsocketHandshakeReceivedAsServer(WebSocket, Draft, ClientHandshake) - Method in interface org.java_websocket.WebSocketListener
-
Called on the server side when the socket connection is first established, and the WebSocket
handshake has been received.
- onWebsocketHandshakeSentAsClient(WebSocket, ClientHandshake) - Method in class org.java_websocket.WebSocketAdapter
-
This default implementation does not do anything which will cause the connections to always progress.
- onWebsocketHandshakeSentAsClient(WebSocket, ClientHandshake) - Method in interface org.java_websocket.WebSocketListener
-
Called on the client side when the socket connection is first established, and the WebSocketImpl
handshake has just been sent.
- onWebsocketMessage(WebSocket, String) - Method in class org.java_websocket.client.WebSocketClient
-
Calls subclass' implementation of onMessage.
- onWebsocketMessage(WebSocket, ByteBuffer) - Method in class org.java_websocket.client.WebSocketClient
-
- onWebsocketMessage(WebSocket, String) - Method in class org.java_websocket.server.WebSocketServer
-
- onWebsocketMessage(WebSocket, ByteBuffer) - Method in class org.java_websocket.server.WebSocketServer
-
- onWebsocketMessage(WebSocket, String) - Method in interface org.java_websocket.WebSocketListener
-
Called when an entire text frame has been received.
- onWebsocketMessage(WebSocket, ByteBuffer) - Method in interface org.java_websocket.WebSocketListener
-
Called when an entire binary frame has been received.
- onWebsocketMessageFragment(WebSocket, Framedata) - Method in class org.java_websocket.WebSocketAdapter
-
This default implementation does not do anything.
- onWebsocketMessageFragment(WebSocket, Framedata) - Method in interface org.java_websocket.WebSocketListener
-
- onWebsocketOpen(WebSocket, Handshakedata) - Method in class org.java_websocket.client.WebSocketClient
-
Calls subclass' implementation of onOpen.
- onWebsocketOpen(WebSocket, Handshakedata) - Method in class org.java_websocket.server.WebSocketServer
-
- onWebsocketOpen(WebSocket, Handshakedata) - Method in interface org.java_websocket.WebSocketListener
-
Called after onHandshakeReceived returns true.
- onWebsocketPing(WebSocket, Framedata) - Method in class org.java_websocket.WebSocketAdapter
-
This default implementation will send a pong in response to the received ping.
- onWebsocketPing(WebSocket, Framedata) - Method in interface org.java_websocket.WebSocketListener
-
Called a ping frame has been received.
- onWebsocketPong(WebSocket, Framedata) - Method in class org.java_websocket.WebSocketAdapter
-
This default implementation does not do anything.
- onWebsocketPong(WebSocket, Framedata) - Method in interface org.java_websocket.WebSocketListener
-
Called when a pong frame is received.
- onWriteDemand(WebSocket) - Method in class org.java_websocket.client.WebSocketClient
-
- onWriteDemand(WebSocket) - Method in class org.java_websocket.server.WebSocketServer
-
- onWriteDemand(WebSocket) - Method in interface org.java_websocket.WebSocketListener
-
This method is used to inform the selector thread that there is data queued to be written to the socket.
- optcode - Variable in class org.java_websocket.framing.FramedataImpl1
-
- ORDERED - Static variable in class org.java_websocket.util.Base64
-
- org.java_websocket - package org.java_websocket
-
- org.java_websocket.client - package org.java_websocket.client
-
- org.java_websocket.drafts - package org.java_websocket.drafts
-
- org.java_websocket.exceptions - package org.java_websocket.exceptions
-
- org.java_websocket.framing - package org.java_websocket.framing
-
- org.java_websocket.handshake - package org.java_websocket.handshake
-
- org.java_websocket.server - package org.java_websocket.server
-
- org.java_websocket.util - package org.java_websocket.util
-
- outCrypt - Variable in class org.java_websocket.SSLSocketChannel2
-
encrypted data outgoing
- outQueue - Variable in class org.java_websocket.WebSocketImpl
-
Queue of buffers that need to be sent to the client.
- valueOf(String) - Static method in enum org.java_websocket.drafts.Draft.CloseHandshakeType
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum org.java_websocket.drafts.Draft.HandshakeState
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum org.java_websocket.framing.Framedata.Opcode
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum org.java_websocket.WebSocket.READYSTATE
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum org.java_websocket.WebSocket.Role
-
Returns the enum constant of this type with the specified name.
- values() - Static method in enum org.java_websocket.drafts.Draft.CloseHandshakeType
-
Returns an array containing the constants of this enum type, in
the order they are declared.
- values() - Static method in enum org.java_websocket.drafts.Draft.HandshakeState
-
Returns an array containing the constants of this enum type, in
the order they are declared.
- values() - Static method in enum org.java_websocket.framing.Framedata.Opcode
-
Returns an array containing the constants of this enum type, in
the order they are declared.
- values() - Static method in enum org.java_websocket.WebSocket.READYSTATE
-
Returns an array containing the constants of this enum type, in
the order they are declared.
- values() - Static method in enum org.java_websocket.WebSocket.Role
-
Returns an array containing the constants of this enum type, in
the order they are declared.