Skip navigation links
A B C D E F G H I K L M N O P R S T U V W 

A

ABNORMAL_CLOSE - Static variable in interface com.pusher.java_websocket.framing.CloseFrame
1006 is a reserved value and MUST NOT be set as a status code in a Close control frame by an endpoint.
AbstractClientProxyChannel - Class in com.pusher.java_websocket.client
 
AbstractClientProxyChannel(ByteChannel) - Constructor for class com.pusher.java_websocket.client.AbstractClientProxyChannel
 
AbstractWrappedByteChannel - Class in com.pusher.java_websocket
 
AbstractWrappedByteChannel(ByteChannel) - Constructor for class com.pusher.java_websocket.AbstractWrappedByteChannel
 
AbstractWrappedByteChannel(WrappedByteChannel) - Constructor for class com.pusher.java_websocket.AbstractWrappedByteChannel
 
acceptHandshakeAsClient(ClientHandshake, ServerHandshake) - Method in class com.pusher.java_websocket.drafts.Draft
 
acceptHandshakeAsClient(ClientHandshake, ServerHandshake) - Method in class com.pusher.java_websocket.drafts.Draft_10
 
acceptHandshakeAsClient(ClientHandshake, ServerHandshake) - Method in class com.pusher.java_websocket.drafts.Draft_75
 
acceptHandshakeAsClient(ClientHandshake, ServerHandshake) - Method in class com.pusher.java_websocket.drafts.Draft_76
 
acceptHandshakeAsServer(ClientHandshake) - Method in class com.pusher.java_websocket.drafts.Draft
 
acceptHandshakeAsServer(ClientHandshake) - Method in class com.pusher.java_websocket.drafts.Draft_10
 
acceptHandshakeAsServer(ClientHandshake) - Method in class com.pusher.java_websocket.drafts.Draft_17
 
acceptHandshakeAsServer(ClientHandshake) - Method in class com.pusher.java_websocket.drafts.Draft_75
 
acceptHandshakeAsServer(ClientHandshake) - Method in class com.pusher.java_websocket.drafts.Draft_76
 
addConnection(WebSocket) - Method in class com.pusher.java_websocket.server.WebSocketServer
 
allocateBuffers(WebSocket) - Method in class com.pusher.java_websocket.server.WebSocketServer
 
append(Framedata) - Method in interface com.pusher.java_websocket.framing.Framedata
 
append(Framedata) - Method in class com.pusher.java_websocket.framing.FramedataImpl1
 
asciiBytes(String) - Static method in class com.pusher.java_websocket.util.Charsetfunctions
 

B

Base64 - Class in com.pusher.java_websocket.util
Encodes and decodes to and from Base64 notation.
Base64.InputStream - Class in com.pusher.java_websocket.util
A Base64.InputStream will read data from another java.io.InputStream, given in the constructor, and encode/decode to/from Base64 notation on the fly.
Base64.OutputStream - Class in com.pusher.java_websocket.util
A Base64.OutputStream will write data to another java.io.OutputStream, given in the constructor, and encode/decode to/from Base64 notation on the fly.
basicAccept(Handshakedata) - Method in class com.pusher.java_websocket.drafts.Draft
 
batch(WebSocketImpl, ByteChannel) - Static method in class com.pusher.java_websocket.SocketChannelIOHelper
Returns whether the whole outQueue has been flushed
bufferallocations - Variable in class com.pusher.java_websocket.SSLSocketChannel2
Should be used to count the buffer allocations.
BUGGYCLOSE - Static variable in interface com.pusher.java_websocket.framing.CloseFrame
 
buildHandShake() - Method in class com.pusher.java_websocket.client.AbstractClientProxyChannel
 

C

channel - Variable in class com.pusher.java_websocket.WebSocketImpl
the possibly wrapped channel object whose selection is controlled by WebSocketImpl.key
Charsetfunctions - Class in com.pusher.java_websocket.util
 
Charsetfunctions() - Constructor for class com.pusher.java_websocket.util.Charsetfunctions
 
checkAlloc(int) - Method in class com.pusher.java_websocket.drafts.Draft
 
ClientHandshake - Interface in com.pusher.java_websocket.handshake
 
ClientHandshakeBuilder - Interface in com.pusher.java_websocket.handshake
 
close() - Method in class com.pusher.java_websocket.AbstractWrappedByteChannel
 
close() - Method in class com.pusher.java_websocket.client.WebSocketClient
Initiates the websocket close handshake.
close(int) - Method in class com.pusher.java_websocket.client.WebSocketClient
 
close(int, String) - Method in class com.pusher.java_websocket.client.WebSocketClient
 
close() - Method in class com.pusher.java_websocket.SSLSocketChannel2
 
close() - Method in class com.pusher.java_websocket.util.Base64.OutputStream
Flushes and closes (I think, in the superclass) the stream.
close(int, String) - Method in interface com.pusher.java_websocket.WebSocket
sends the closing handshake.
close(int) - Method in interface com.pusher.java_websocket.WebSocket
 
close() - Method in interface com.pusher.java_websocket.WebSocket
Convenience function which behaves like close(CloseFrame.NORMAL)
close(int, String) - Method in class com.pusher.java_websocket.WebSocketImpl
 
close(int) - Method in class com.pusher.java_websocket.WebSocketImpl
 
close(InvalidDataException) - Method in class com.pusher.java_websocket.WebSocketImpl
 
close() - Method in class com.pusher.java_websocket.WebSocketImpl
 
closeBlocking() - Method in class com.pusher.java_websocket.client.WebSocketClient
 
closeConnection(int, String) - Method in class com.pusher.java_websocket.client.WebSocketClient
 
closeConnection(int, String) - Method in interface com.pusher.java_websocket.WebSocket
This will close the connection immediately without a proper close handshake.
closeConnection(int, String, boolean) - Method in class com.pusher.java_websocket.WebSocketImpl
 
closeConnection(int, boolean) - Method in class com.pusher.java_websocket.WebSocketImpl
 
closeConnection() - Method in class com.pusher.java_websocket.WebSocketImpl
 
closeConnection(int, String) - Method in class com.pusher.java_websocket.WebSocketImpl
 
CloseFrame - Interface in com.pusher.java_websocket.framing
 
CloseFrameBuilder - Class in com.pusher.java_websocket.framing
 
CloseFrameBuilder() - Constructor for class com.pusher.java_websocket.framing.CloseFrameBuilder
 
CloseFrameBuilder(int) - Constructor for class com.pusher.java_websocket.framing.CloseFrameBuilder
 
CloseFrameBuilder(int, String) - Constructor for class com.pusher.java_websocket.framing.CloseFrameBuilder
 
codingErrorAction - Static variable in class com.pusher.java_websocket.util.Charsetfunctions
 
com.pusher.java_websocket - package com.pusher.java_websocket
 
com.pusher.java_websocket.client - package com.pusher.java_websocket.client
 
com.pusher.java_websocket.drafts - package com.pusher.java_websocket.drafts
 
com.pusher.java_websocket.exceptions - package com.pusher.java_websocket.exceptions
 
com.pusher.java_websocket.framing - package com.pusher.java_websocket.framing
 
com.pusher.java_websocket.handshake - package com.pusher.java_websocket.handshake
 
com.pusher.java_websocket.server - package com.pusher.java_websocket.server
 
com.pusher.java_websocket.util - package com.pusher.java_websocket.util
 
configureBlocking(boolean) - Method in class com.pusher.java_websocket.SSLSocketChannel2
 
connect() - Method in class com.pusher.java_websocket.client.WebSocketClient
Initiates the websocket connection.
connect(SocketAddress) - Method in class com.pusher.java_websocket.SSLSocketChannel2
 
connectBlocking() - Method in class com.pusher.java_websocket.client.WebSocketClient
Same as connect but blocks until the websocket connected or failed to do so.
Returns whether it succeeded or not.
connections() - Method in class com.pusher.java_websocket.server.WebSocketServer
Returns a WebSocket[] of currently connected clients.
consumeDelegatedTasks() - Method in class com.pusher.java_websocket.SSLSocketChannel2
 
continuousFrame(Framedata.Opcode, ByteBuffer, boolean) - Method in class com.pusher.java_websocket.drafts.Draft
 
continuousFrameType - Variable in class com.pusher.java_websocket.drafts.Draft
 
copyInstance() - Method in class com.pusher.java_websocket.drafts.Draft
Drafts must only be by one websocket at all.
copyInstance() - Method in class com.pusher.java_websocket.drafts.Draft_10
 
copyInstance() - Method in class com.pusher.java_websocket.drafts.Draft_17
 
copyInstance() - Method in class com.pusher.java_websocket.drafts.Draft_75
 
copyInstance() - Method in class com.pusher.java_websocket.drafts.Draft_76
 
CR - Static variable in class com.pusher.java_websocket.drafts.Draft_75
The byte representing CR, or Carriage Return, or \r
createBinaryFrame(Framedata) - Method in class com.pusher.java_websocket.drafts.Draft
 
createBinaryFrame(Framedata) - Method in class com.pusher.java_websocket.drafts.Draft_10
 
createBinaryFrame(Framedata) - Method in class com.pusher.java_websocket.drafts.Draft_75
 
createBinaryFrame(Framedata) - Method in class com.pusher.java_websocket.drafts.Draft_76
 
createBuffer() - Method in class com.pusher.java_websocket.drafts.Draft_75
 
createBuffer() - Method in class com.pusher.java_websocket.server.WebSocketServer
 
createBuffers(SSLSession) - Method in class com.pusher.java_websocket.SSLSocketChannel2
 
createChallenge(String, String, byte[]) - Static method in class com.pusher.java_websocket.drafts.Draft_76
 
createFrames(ByteBuffer, boolean) - Method in class com.pusher.java_websocket.drafts.Draft
 
createFrames(String, boolean) - Method in class com.pusher.java_websocket.drafts.Draft
 
createFrames(ByteBuffer, boolean) - Method in class com.pusher.java_websocket.drafts.Draft_10
 
createFrames(String, boolean) - Method in class com.pusher.java_websocket.drafts.Draft_10
 
createFrames(ByteBuffer, boolean) - Method in class com.pusher.java_websocket.drafts.Draft_75
 
createFrames(String, boolean) - Method in class com.pusher.java_websocket.drafts.Draft_75
 
createHandshake(Handshakedata, WebSocket.Role) - Method in class com.pusher.java_websocket.drafts.Draft
 
createHandshake(Handshakedata, WebSocket.Role, boolean) - Method in class com.pusher.java_websocket.drafts.Draft
 
createWebSocket(WebSocketAdapter, Draft, Socket) - Method in class com.pusher.java_websocket.server.DefaultSSLWebSocketServerFactory
 
createWebSocket(WebSocketAdapter, List<Draft>, Socket) - Method in class com.pusher.java_websocket.server.DefaultSSLWebSocketServerFactory
 
createWebSocket(WebSocketAdapter, Draft, Socket) - Method in class com.pusher.java_websocket.server.DefaultWebSocketServerFactory
 
createWebSocket(WebSocketAdapter, List<Draft>, Socket) - Method in class com.pusher.java_websocket.server.DefaultWebSocketServerFactory
 
createWebSocket(WebSocketAdapter, Draft, Socket) - Method in interface com.pusher.java_websocket.server.WebSocketServer.WebSocketServerFactory
 
createWebSocket(WebSocketAdapter, List<Draft>, Socket) - Method in interface com.pusher.java_websocket.server.WebSocketServer.WebSocketServerFactory
 
createWebSocket(WebSocketAdapter, Draft, Socket) - Method in interface com.pusher.java_websocket.WebSocketFactory
 
createWebSocket(WebSocketAdapter, List<Draft>, Socket) - Method in interface com.pusher.java_websocket.WebSocketFactory
 
currentFrame - Variable in class com.pusher.java_websocket.drafts.Draft_75
 

D

DEBUG - Static variable in class com.pusher.java_websocket.WebSocketImpl
 
DECODE - Static variable in class com.pusher.java_websocket.util.Base64
Specify decoding in first bit.
decode(byte[]) - Static method in class com.pusher.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 com.pusher.java_websocket.util.Base64
Low-level access to decoding ASCII characters in the form of a byte array.
decode(String) - Static method in class com.pusher.java_websocket.util.Base64
Decodes data from Base64 notation, automatically detecting gzip-compressed data and decompressing it.
decode(String, int) - Static method in class com.pusher.java_websocket.util.Base64
Decodes data from Base64 notation, automatically detecting gzip-compressed data and decompressing it.
decode(ByteBuffer) - Method in class com.pusher.java_websocket.WebSocketImpl
 
decodeFileToFile(String, String) - Static method in class com.pusher.java_websocket.util.Base64
Reads infile and decodes it to outfile.
decodeFromFile(String) - Static method in class com.pusher.java_websocket.util.Base64
Convenience method for reading a base64-encoded file and decoding it.
DECODERS - Static variable in class com.pusher.java_websocket.server.WebSocketServer
 
decodeToFile(String, String) - Static method in class com.pusher.java_websocket.util.Base64
Convenience method for decoding data to a file.
decodeToObject(String) - Static method in class com.pusher.java_websocket.util.Base64
Attempts to decode Base64 data and deserialize a Java Object within.
decodeToObject(String, int, ClassLoader) - Static method in class com.pusher.java_websocket.util.Base64
Attempts to decode Base64 data and deserialize a Java Object within.
DEFAULT_PORT - Static variable in interface com.pusher.java_websocket.WebSocket
The default port of WebSockets, as defined in the spec.
DEFAULT_WSS_PORT - Static variable in interface com.pusher.java_websocket.WebSocket
 
defaultdraftlist - Static variable in class com.pusher.java_websocket.WebSocketImpl
 
DefaultSSLWebSocketServerFactory - Class in com.pusher.java_websocket.server
 
DefaultSSLWebSocketServerFactory(SSLContext) - Constructor for class com.pusher.java_websocket.server.DefaultSSLWebSocketServerFactory
 
DefaultSSLWebSocketServerFactory(SSLContext, ExecutorService) - Constructor for class com.pusher.java_websocket.server.DefaultSSLWebSocketServerFactory
 
DefaultWebSocketServerFactory - Class in com.pusher.java_websocket.server
 
DefaultWebSocketServerFactory() - Constructor for class com.pusher.java_websocket.server.DefaultWebSocketServerFactory
 
DO_BREAK_LINES - Static variable in class com.pusher.java_websocket.util.Base64
Do break lines when encoding.
DONT_GUNZIP - Static variable in class com.pusher.java_websocket.util.Base64
Specify that gzipped data should not be automatically gunzipped.
Draft - Class in com.pusher.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 com.pusher.java_websocket.drafts.Draft
 
Draft.CloseHandshakeType - Enum in com.pusher.java_websocket.drafts
 
Draft.HandshakeState - Enum in com.pusher.java_websocket.drafts
 
Draft_10 - Class in com.pusher.java_websocket.drafts
 
Draft_10() - Constructor for class com.pusher.java_websocket.drafts.Draft_10
 
Draft_17 - Class in com.pusher.java_websocket.drafts
 
Draft_17() - Constructor for class com.pusher.java_websocket.drafts.Draft_17
 
Draft_75 - Class in com.pusher.java_websocket.drafts
 
Draft_75() - Constructor for class com.pusher.java_websocket.drafts.Draft_75
 
Draft_76 - Class in com.pusher.java_websocket.drafts
 
Draft_76() - Constructor for class com.pusher.java_websocket.drafts.Draft_76
 

E

emptyarray - Static variable in class com.pusher.java_websocket.framing.FramedataImpl1
 
emptybuffer - Static variable in class com.pusher.java_websocket.SSLSocketChannel2
This object is used to feed the SSLEngine's wrap and unwrap methods during the handshake phase.
ENCODE - Static variable in class com.pusher.java_websocket.util.Base64
Specify encoding in first bit.
encode(ByteBuffer, ByteBuffer) - Static method in class com.pusher.java_websocket.util.Base64
Performs Base64 encoding on the raw ByteBuffer, writing it to the encoded ByteBuffer.
encode(ByteBuffer, CharBuffer) - Static method in class com.pusher.java_websocket.util.Base64
Performs Base64 encoding on the raw ByteBuffer, writing it to the encoded CharBuffer.
encodeBytes(byte[]) - Static method in class com.pusher.java_websocket.util.Base64
Encodes a byte array into Base64 notation.
encodeBytes(byte[], int) - Static method in class com.pusher.java_websocket.util.Base64
Encodes a byte array into Base64 notation.
encodeBytes(byte[], int, int) - Static method in class com.pusher.java_websocket.util.Base64
Encodes a byte array into Base64 notation.
encodeBytes(byte[], int, int, int) - Static method in class com.pusher.java_websocket.util.Base64
Encodes a byte array into Base64 notation.
encodeBytesToBytes(byte[]) - Static method in class com.pusher.java_websocket.util.Base64
Similar to Base64.encodeBytes(byte[]) but returns a byte array instead of instantiating a String.
encodeBytesToBytes(byte[], int, int, int) - Static method in class com.pusher.java_websocket.util.Base64
Similar to Base64.encodeBytes(byte[], int, int, int) but returns a byte array instead of instantiating a String.
encodeFileToFile(String, String) - Static method in class com.pusher.java_websocket.util.Base64
Reads infile and encodes it to outfile.
encodeFromFile(String) - Static method in class com.pusher.java_websocket.util.Base64
Convenience method for reading a binary file and base64-encoding it.
encodeObject(Serializable) - Static method in class com.pusher.java_websocket.util.Base64
Serializes an object and returns the Base64-encoded version of that serialized object.
encodeObject(Serializable, int) - Static method in class com.pusher.java_websocket.util.Base64
Serializes an object and returns the Base64-encoded version of that serialized object.
encodeToFile(byte[], String) - Static method in class com.pusher.java_websocket.util.Base64
Convenience method for encoding data to a file.
END_OF_FRAME - Static variable in class com.pusher.java_websocket.drafts.Draft_75
The byte representing the end of a WebSocket text frame.
eot() - Method in class com.pusher.java_websocket.WebSocketImpl
 
exec - Variable in class com.pusher.java_websocket.server.DefaultSSLWebSocketServerFactory
 
exec - Variable in class com.pusher.java_websocket.SSLSocketChannel2
 
EXTENSION - Static variable in interface com.pusher.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.

F

fin - Variable in class com.pusher.java_websocket.framing.FramedataImpl1
 
finishConnect() - Method in class com.pusher.java_websocket.SSLSocketChannel2
 
FLASH_POLICY_REQUEST - Static variable in class com.pusher.java_websocket.drafts.Draft
 
FLASHPOLICY - Static variable in interface com.pusher.java_websocket.framing.CloseFrame
 
flushAndClose(int, String, boolean) - Method in class com.pusher.java_websocket.WebSocketImpl
 
flushBase64() - Method in class com.pusher.java_websocket.util.Base64.OutputStream
Method added by PHIL.
FrameBuilder - Interface in com.pusher.java_websocket.framing
 
Framedata - Interface in com.pusher.java_websocket.framing
 
Framedata.Opcode - Enum in com.pusher.java_websocket.framing
 
FramedataImpl1 - Class in com.pusher.java_websocket.framing
 
FramedataImpl1() - Constructor for class com.pusher.java_websocket.framing.FramedataImpl1
 
FramedataImpl1(Framedata.Opcode) - Constructor for class com.pusher.java_websocket.framing.FramedataImpl1
 
FramedataImpl1(Framedata) - Constructor for class com.pusher.java_websocket.framing.FramedataImpl1
Helper constructor which helps to create "echo" frames.

G

getAddress() - Method in class com.pusher.java_websocket.server.WebSocketServer
 
getCloseCode() - Method in exception com.pusher.java_websocket.exceptions.InvalidDataException
 
getCloseCode() - Method in interface com.pusher.java_websocket.framing.CloseFrame
 
getCloseCode() - Method in class com.pusher.java_websocket.framing.CloseFrameBuilder
 
getCloseHandshakeType() - Method in class com.pusher.java_websocket.drafts.Draft
 
getCloseHandshakeType() - Method in class com.pusher.java_websocket.drafts.Draft_10
 
getCloseHandshakeType() - Method in class com.pusher.java_websocket.drafts.Draft_75
 
getCloseHandshakeType() - Method in class com.pusher.java_websocket.drafts.Draft_76
 
getConnection() - Method in class com.pusher.java_websocket.client.WebSocketClient
 
getContent() - Method in interface com.pusher.java_websocket.handshake.Handshakedata
 
getContent() - Method in class com.pusher.java_websocket.handshake.HandshakedataImpl1
 
getDraft() - Method in class com.pusher.java_websocket.client.WebSocketClient
Returns the protocol version this channel uses.
For more infos see https://github.com/TooTallNate/Java-WebSocket/wiki/Drafts
getDraft() - Method in class com.pusher.java_websocket.server.WebSocketServer
 
getDraft() - Method in interface com.pusher.java_websocket.WebSocket
 
getDraft() - Method in class com.pusher.java_websocket.WebSocketImpl
 
getFieldValue(String) - Method in interface com.pusher.java_websocket.handshake.Handshakedata
 
getFieldValue(String) - Method in class com.pusher.java_websocket.handshake.HandshakedataImpl1
 
getFlashPolicy(WebSocket) - Method in class com.pusher.java_websocket.WebSocketAdapter
Gets the XML string that should be returned if a client requests a Flash security policy.
getFlashPolicy(WebSocket) - Method in interface com.pusher.java_websocket.WebSocketListener
Gets the XML string that should be returned if a client requests a Flash security policy.
getFlashSecurityPolicy() - Method in class com.pusher.java_websocket.server.WebSocketServer
Gets the XML string that should be returned if a client requests a Flash security policy.
getHttpStatus() - Method in class com.pusher.java_websocket.handshake.HandshakeImpl1Server
 
getHttpStatus() - Method in interface com.pusher.java_websocket.handshake.ServerHandshake
 
getHttpStatusMessage() - Method in class com.pusher.java_websocket.handshake.HandshakeImpl1Server
 
getHttpStatusMessage() - Method in interface com.pusher.java_websocket.handshake.ServerHandshake
 
getLocalSocketAddress(WebSocket) - Method in class com.pusher.java_websocket.client.WebSocketClient
 
getLocalSocketAddress() - Method in class com.pusher.java_websocket.client.WebSocketClient
 
getLocalSocketAddress(WebSocket) - Method in class com.pusher.java_websocket.server.WebSocketServer
 
getLocalSocketAddress() - Method in interface com.pusher.java_websocket.WebSocket
 
getLocalSocketAddress() - Method in class com.pusher.java_websocket.WebSocketImpl
 
getLocalSocketAddress(WebSocket) - Method in interface com.pusher.java_websocket.WebSocketListener
 
getMessage() - Method in interface com.pusher.java_websocket.framing.CloseFrame
 
getMessage() - Method in class com.pusher.java_websocket.framing.CloseFrameBuilder
 
getOpcode() - Method in interface com.pusher.java_websocket.framing.Framedata
 
getOpcode() - Method in class com.pusher.java_websocket.framing.FramedataImpl1
 
getPayloadData() - Method in class com.pusher.java_websocket.framing.CloseFrameBuilder
 
getPayloadData() - Method in interface com.pusher.java_websocket.framing.Framedata
 
getPayloadData() - Method in class com.pusher.java_websocket.framing.FramedataImpl1
 
getPort() - Method in class com.pusher.java_websocket.server.WebSocketServer
Gets the port number that this server listens on.
getPreferedSize() - Method in exception com.pusher.java_websocket.exceptions.IncompleteHandshakeException
 
getReadyState() - Method in class com.pusher.java_websocket.client.WebSocketClient
This represents the state of the connection.
getReadyState() - Method in interface com.pusher.java_websocket.WebSocket
Retrieve the WebSocket 'readyState'.
getReadyState() - Method in class com.pusher.java_websocket.WebSocketImpl
 
getRemoteSocketAddress(WebSocket) - Method in class com.pusher.java_websocket.client.WebSocketClient
 
getRemoteSocketAddress() - Method in class com.pusher.java_websocket.client.WebSocketClient
 
getRemoteSocketAddress(WebSocket) - Method in class com.pusher.java_websocket.server.WebSocketServer
 
getRemoteSocketAddress() - Method in interface com.pusher.java_websocket.WebSocket
 
getRemoteSocketAddress() - Method in class com.pusher.java_websocket.WebSocketImpl
 
getRemoteSocketAddress(WebSocket) - Method in interface com.pusher.java_websocket.WebSocketListener
 
getResourceDescriptor() - Method in class com.pusher.java_websocket.client.WebSocketClient
 
getResourceDescriptor() - Method in interface com.pusher.java_websocket.handshake.ClientHandshake
returns the HTTP Request-URI as defined by http://tools.ietf.org/html/rfc2616#section-5.1.2
getResourceDescriptor() - Method in class com.pusher.java_websocket.handshake.HandshakeImpl1Client
 
getResourceDescriptor() - Method in interface com.pusher.java_websocket.WebSocket
Returns the HTTP Request-URI as defined by http://tools.ietf.org/html/rfc2616#section-5.1.2
If the opening handshake has not yet happened it will return null.
getResourceDescriptor() - Method in class com.pusher.java_websocket.WebSocketImpl
 
getRole() - Method in class com.pusher.java_websocket.drafts.Draft
 
getTransfereMasked() - Method in interface com.pusher.java_websocket.framing.Framedata
 
getTransfereMasked() - Method in class com.pusher.java_websocket.framing.FramedataImpl1
 
getURI() - Method in class com.pusher.java_websocket.client.WebSocketClient
Returns the URI that this WebSocketClient is connected to.
getWebSocketFactory() - Method in class com.pusher.java_websocket.server.WebSocketServer
 
GOING_AWAY - Static variable in interface com.pusher.java_websocket.framing.CloseFrame
1001 indicates that an endpoint is "going away", such as a server going down, or a browser having navigated away from a page.
GZIP - Static variable in class com.pusher.java_websocket.util.Base64
Specify that data should be gzip-compressed in second bit.

H

HandshakeBuilder - Interface in com.pusher.java_websocket.handshake
 
Handshakedata - Interface in com.pusher.java_websocket.handshake
 
HandshakedataImpl1 - Class in com.pusher.java_websocket.handshake
 
HandshakedataImpl1() - Constructor for class com.pusher.java_websocket.handshake.HandshakedataImpl1
 
HandshakeImpl1Client - Class in com.pusher.java_websocket.handshake
 
HandshakeImpl1Client() - Constructor for class com.pusher.java_websocket.handshake.HandshakeImpl1Client
 
HandshakeImpl1Server - Class in com.pusher.java_websocket.handshake
 
HandshakeImpl1Server() - Constructor for class com.pusher.java_websocket.handshake.HandshakeImpl1Server
 
hasBufferedData() - Method in class com.pusher.java_websocket.client.WebSocketClient
 
hasBufferedData() - Method in interface com.pusher.java_websocket.WebSocket
 
hasBufferedData() - Method in class com.pusher.java_websocket.WebSocketImpl
 
hasFieldValue(String) - Method in interface com.pusher.java_websocket.handshake.Handshakedata
 
hasFieldValue(String) - Method in class com.pusher.java_websocket.handshake.HandshakedataImpl1
 
hashCode() - Method in class com.pusher.java_websocket.WebSocketImpl
 

I

IncompleteHandshakeException - Exception in com.pusher.java_websocket.exceptions
 
IncompleteHandshakeException(int) - Constructor for exception com.pusher.java_websocket.exceptions.IncompleteHandshakeException
 
IncompleteHandshakeException() - Constructor for exception com.pusher.java_websocket.exceptions.IncompleteHandshakeException
 
increaseBuffer(ByteBuffer) - Method in class com.pusher.java_websocket.drafts.Draft_75
 
inCrypt - Variable in class com.pusher.java_websocket.SSLSocketChannel2
encrypted data incoming
inData - Variable in class com.pusher.java_websocket.SSLSocketChannel2
raw payload incomming
INITIAL_FAMESIZE - Static variable in class com.pusher.java_websocket.drafts.Draft
 
InputStream(InputStream) - Constructor for class com.pusher.java_websocket.util.Base64.InputStream
Constructs a Base64.InputStream in DECODE mode.
InputStream(InputStream, int) - Constructor for class com.pusher.java_websocket.util.Base64.InputStream
Constructs a Base64.InputStream in either ENCODE or DECODE mode.
inQueue - Variable in class com.pusher.java_websocket.WebSocketImpl
Queue of buffers that need to be processed
InvalidDataException - Exception in com.pusher.java_websocket.exceptions
 
InvalidDataException(int) - Constructor for exception com.pusher.java_websocket.exceptions.InvalidDataException
 
InvalidDataException(int, String) - Constructor for exception com.pusher.java_websocket.exceptions.InvalidDataException
 
InvalidDataException(int, Throwable) - Constructor for exception com.pusher.java_websocket.exceptions.InvalidDataException
 
InvalidDataException(int, String, Throwable) - Constructor for exception com.pusher.java_websocket.exceptions.InvalidDataException
 
InvalidFrameException - Exception in com.pusher.java_websocket.exceptions
 
InvalidFrameException() - Constructor for exception com.pusher.java_websocket.exceptions.InvalidFrameException
 
InvalidFrameException(String) - Constructor for exception com.pusher.java_websocket.exceptions.InvalidFrameException
 
InvalidFrameException(Throwable) - Constructor for exception com.pusher.java_websocket.exceptions.InvalidFrameException
 
InvalidFrameException(String, Throwable) - Constructor for exception com.pusher.java_websocket.exceptions.InvalidFrameException
 
InvalidHandshakeException - Exception in com.pusher.java_websocket.exceptions
 
InvalidHandshakeException() - Constructor for exception com.pusher.java_websocket.exceptions.InvalidHandshakeException
 
InvalidHandshakeException(String, Throwable) - Constructor for exception com.pusher.java_websocket.exceptions.InvalidHandshakeException
 
InvalidHandshakeException(String) - Constructor for exception com.pusher.java_websocket.exceptions.InvalidHandshakeException
 
InvalidHandshakeException(Throwable) - Constructor for exception com.pusher.java_websocket.exceptions.InvalidHandshakeException
 
isBlocking() - Method in class com.pusher.java_websocket.AbstractWrappedByteChannel
 
isBlocking() - Method in class com.pusher.java_websocket.SSLSocketChannel2
 
isBlocking() - Method in interface com.pusher.java_websocket.WrappedByteChannel
 
isClosed() - Method in class com.pusher.java_websocket.client.WebSocketClient
 
isClosed() - Method in interface com.pusher.java_websocket.WebSocket
Returns whether the close handshake has been completed and the socket is closed.
isClosed() - Method in class com.pusher.java_websocket.WebSocketImpl
 
isClosing() - Method in class com.pusher.java_websocket.client.WebSocketClient
 
isClosing() - Method in interface com.pusher.java_websocket.WebSocket
 
isClosing() - Method in class com.pusher.java_websocket.WebSocketImpl
 
isConnected() - Method in class com.pusher.java_websocket.SSLSocketChannel2
 
isConnecting() - Method in class com.pusher.java_websocket.client.WebSocketClient
 
isConnecting() - Method in interface com.pusher.java_websocket.WebSocket
 
isConnecting() - Method in class com.pusher.java_websocket.WebSocketImpl
 
isFin() - Method in interface com.pusher.java_websocket.framing.Framedata
 
isFin() - Method in class com.pusher.java_websocket.framing.FramedataImpl1
 
isFlushAndClose() - Method in class com.pusher.java_websocket.client.WebSocketClient
 
isFlushAndClose() - Method in interface com.pusher.java_websocket.WebSocket
Returns true when no further frames may be submitted
This happens before the socket connection is closed.
isFlushAndClose() - Method in class com.pusher.java_websocket.WebSocketImpl
 
isInboundDone() - Method in class com.pusher.java_websocket.SSLSocketChannel2
 
isNeedRead() - Method in class com.pusher.java_websocket.AbstractWrappedByteChannel
 
isNeedRead() - Method in class com.pusher.java_websocket.SSLSocketChannel2
 
isNeedRead() - Method in interface com.pusher.java_websocket.WrappedByteChannel
returns whether readMore should be called to fetch data which has been decoded but not yet been returned.
isNeedWrite() - Method in class com.pusher.java_websocket.AbstractWrappedByteChannel
 
isNeedWrite() - Method in class com.pusher.java_websocket.SSLSocketChannel2
 
isNeedWrite() - Method in interface com.pusher.java_websocket.WrappedByteChannel
 
isOpen() - Method in class com.pusher.java_websocket.AbstractWrappedByteChannel
 
isOpen() - Method in class com.pusher.java_websocket.client.WebSocketClient
 
isOpen() - Method in class com.pusher.java_websocket.SSLSocketChannel2
 
isOpen() - Method in interface com.pusher.java_websocket.WebSocket
 
isOpen() - Method in class com.pusher.java_websocket.WebSocketImpl
 
iterateHttpFields() - Method in interface com.pusher.java_websocket.handshake.Handshakedata
 
iterateHttpFields() - Method in class com.pusher.java_websocket.handshake.HandshakedataImpl1
 

K

key - Variable in class com.pusher.java_websocket.WebSocketImpl
 

L

LF - Static variable in class com.pusher.java_websocket.drafts.Draft_75
The byte representing LF, or Line Feed, or \n
LimitExedeedException - Exception in com.pusher.java_websocket.exceptions
 
LimitExedeedException() - Constructor for exception com.pusher.java_websocket.exceptions.LimitExedeedException
 
LimitExedeedException(String) - Constructor for exception com.pusher.java_websocket.exceptions.LimitExedeedException
 

M

main(String[]) - Static method in class com.pusher.java_websocket.util.Charsetfunctions
 
MAX_FAME_SIZE - Static variable in class com.pusher.java_websocket.drafts.Draft
 

N

NEVER_CONNECTED - Static variable in interface com.pusher.java_websocket.framing.CloseFrame
The connection had never been established
NO_OPTIONS - Static variable in class com.pusher.java_websocket.util.Base64
No options specified.
NO_UTF8 - Static variable in interface com.pusher.java_websocket.framing.CloseFrame
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).
NOCODE - Static variable in interface com.pusher.java_websocket.framing.CloseFrame
1005 is a reserved value and MUST NOT be set as a status code in a Close control frame by an endpoint.
NORMAL - Static variable in interface com.pusher.java_websocket.framing.CloseFrame
indicates a normal closure, meaning whatever purpose the connection was established for has been fulfilled.
NotSendableException - Exception in com.pusher.java_websocket.exceptions
 
NotSendableException() - Constructor for exception com.pusher.java_websocket.exceptions.NotSendableException
 
NotSendableException(String) - Constructor for exception com.pusher.java_websocket.exceptions.NotSendableException
 
NotSendableException(Throwable) - Constructor for exception com.pusher.java_websocket.exceptions.NotSendableException
 
NotSendableException(String, Throwable) - Constructor for exception com.pusher.java_websocket.exceptions.NotSendableException
 

O

onClose(int, String, boolean) - Method in class com.pusher.java_websocket.client.WebSocketClient
 
onClose(WebSocket, int, String, boolean) - Method in class com.pusher.java_websocket.server.WebSocketServer
Called after the websocket connection has been closed.
onCloseInitiated(int, String) - Method in class com.pusher.java_websocket.client.WebSocketClient
 
onCloseInitiated(WebSocket, int, String) - Method in class com.pusher.java_websocket.server.WebSocketServer
 
onClosing(int, String, boolean) - Method in class com.pusher.java_websocket.client.WebSocketClient
 
onClosing(WebSocket, int, String, boolean) - Method in class com.pusher.java_websocket.server.WebSocketServer
 
onConnect(SelectionKey) - Method in class com.pusher.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 com.pusher.java_websocket.client.WebSocketClient
 
onError(WebSocket, Exception) - Method in class com.pusher.java_websocket.server.WebSocketServer
Called when errors occurs.
onFragment(Framedata) - Method in class com.pusher.java_websocket.client.WebSocketClient
 
onFragment(WebSocket, Framedata) - Method in class com.pusher.java_websocket.server.WebSocketServer
 
onMessage(String) - Method in class com.pusher.java_websocket.client.WebSocketClient
 
onMessage(ByteBuffer) - Method in class com.pusher.java_websocket.client.WebSocketClient
 
onMessage(WebSocket, String) - Method in class com.pusher.java_websocket.server.WebSocketServer
Callback for string messages received from the remote host
onMessage(WebSocket, ByteBuffer) - Method in class com.pusher.java_websocket.server.WebSocketServer
Callback for binary messages received from the remote host
onOpen(ServerHandshake) - Method in class com.pusher.java_websocket.client.WebSocketClient
 
onOpen(WebSocket, ClientHandshake) - Method in class com.pusher.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 com.pusher.java_websocket.client.WebSocketClient
Calls subclass' implementation of onClose.
onWebsocketClose(WebSocket, int, String, boolean) - Method in class com.pusher.java_websocket.server.WebSocketServer
 
onWebsocketClose(WebSocket, int, String, boolean) - Method in interface com.pusher.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 com.pusher.java_websocket.client.WebSocketClient
 
onWebsocketCloseInitiated(WebSocket, int, String) - Method in class com.pusher.java_websocket.server.WebSocketServer
 
onWebsocketCloseInitiated(WebSocket, int, String) - Method in interface com.pusher.java_websocket.WebSocketListener
send when this peer sends a close handshake
onWebsocketClosing(WebSocket, int, String, boolean) - Method in class com.pusher.java_websocket.client.WebSocketClient
 
onWebsocketClosing(WebSocket, int, String, boolean) - Method in class com.pusher.java_websocket.server.WebSocketServer
 
onWebsocketClosing(WebSocket, int, String, boolean) - Method in interface com.pusher.java_websocket.WebSocketListener
called as soon as no further frames are accepted
onWebsocketError(WebSocket, Exception) - Method in class com.pusher.java_websocket.client.WebSocketClient
Calls subclass' implementation of onIOError.
onWebsocketError(WebSocket, Exception) - Method in class com.pusher.java_websocket.server.WebSocketServer
 
onWebsocketError(WebSocket, Exception) - Method in interface com.pusher.java_websocket.WebSocketListener
Called if an exception worth noting occurred.
onWebsocketHandshakeReceivedAsClient(WebSocket, ClientHandshake, ServerHandshake) - Method in class com.pusher.java_websocket.WebSocketAdapter
 
onWebsocketHandshakeReceivedAsClient(WebSocket, ClientHandshake, ServerHandshake) - Method in interface com.pusher.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 com.pusher.java_websocket.server.WebSocketServer
 
onWebsocketHandshakeReceivedAsServer(WebSocket, Draft, ClientHandshake) - Method in class com.pusher.java_websocket.WebSocketAdapter
This default implementation does not do anything.
onWebsocketHandshakeReceivedAsServer(WebSocket, Draft, ClientHandshake) - Method in interface com.pusher.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 com.pusher.java_websocket.WebSocketAdapter
This default implementation does not do anything which will cause the connections to always progress.
onWebsocketHandshakeSentAsClient(WebSocket, ClientHandshake) - Method in interface com.pusher.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 com.pusher.java_websocket.client.WebSocketClient
Calls subclass' implementation of onMessage.
onWebsocketMessage(WebSocket, ByteBuffer) - Method in class com.pusher.java_websocket.client.WebSocketClient
 
onWebsocketMessage(WebSocket, String) - Method in class com.pusher.java_websocket.server.WebSocketServer
 
onWebsocketMessage(WebSocket, ByteBuffer) - Method in class com.pusher.java_websocket.server.WebSocketServer
 
onWebsocketMessage(WebSocket, String) - Method in interface com.pusher.java_websocket.WebSocketListener
Called when an entire text frame has been received.
onWebsocketMessage(WebSocket, ByteBuffer) - Method in interface com.pusher.java_websocket.WebSocketListener
Called when an entire binary frame has been received.
onWebsocketMessageFragment(WebSocket, Framedata) - Method in class com.pusher.java_websocket.client.WebSocketClient
 
onWebsocketMessageFragment(WebSocket, Framedata) - Method in class com.pusher.java_websocket.server.WebSocketServer
Deprecated.
onWebsocketMessageFragment(WebSocket, Framedata) - Method in class com.pusher.java_websocket.WebSocketAdapter
This default implementation does not do anything.
onWebsocketMessageFragment(WebSocket, Framedata) - Method in interface com.pusher.java_websocket.WebSocketListener
 
onWebsocketOpen(WebSocket, Handshakedata) - Method in class com.pusher.java_websocket.client.WebSocketClient
Calls subclass' implementation of onOpen.
onWebsocketOpen(WebSocket, Handshakedata) - Method in class com.pusher.java_websocket.server.WebSocketServer
 
onWebsocketOpen(WebSocket, Handshakedata) - Method in interface com.pusher.java_websocket.WebSocketListener
Called after onHandshakeReceived returns true.
onWebsocketPing(WebSocket, Framedata) - Method in class com.pusher.java_websocket.WebSocketAdapter
This default implementation will send a pong in response to the received ping.
onWebsocketPing(WebSocket, Framedata) - Method in interface com.pusher.java_websocket.WebSocketListener
Called a ping frame has been received.
onWebsocketPong(WebSocket, Framedata) - Method in class com.pusher.java_websocket.WebSocketAdapter
This default implementation does not do anything.
onWebsocketPong(WebSocket, Framedata) - Method in interface com.pusher.java_websocket.WebSocketListener
Called when a pong frame is received.
onWriteDemand(WebSocket) - Method in class com.pusher.java_websocket.client.WebSocketClient
 
onWriteDemand(WebSocket) - Method in class com.pusher.java_websocket.server.WebSocketServer
 
onWriteDemand(WebSocket) - Method in interface com.pusher.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 com.pusher.java_websocket.framing.FramedataImpl1
 
ORDERED - Static variable in class com.pusher.java_websocket.util.Base64
Encode using the special "ordered" dialect of Base64 described here: http://www.faqs.org/qa/rfcc-1940.html.
outCrypt - Variable in class com.pusher.java_websocket.SSLSocketChannel2
encrypted data outgoing
OutputStream(OutputStream) - Constructor for class com.pusher.java_websocket.util.Base64.OutputStream
Constructs a Base64.OutputStream in ENCODE mode.
OutputStream(OutputStream, int) - Constructor for class com.pusher.java_websocket.util.Base64.OutputStream
Constructs a Base64.OutputStream in either ENCODE or DECODE mode.
outQueue - Variable in class com.pusher.java_websocket.WebSocketImpl
Queue of buffers that need to be sent to the client.

P

POLICY_VALIDATION - Static variable in interface com.pusher.java_websocket.framing.CloseFrame
1008 indicates that an endpoint is terminating the connection because it has received a message that violates its policy.
postProcessHandshakeRequestAsClient(ClientHandshakeBuilder) - Method in class com.pusher.java_websocket.drafts.Draft
 
postProcessHandshakeRequestAsClient(ClientHandshakeBuilder) - Method in class com.pusher.java_websocket.drafts.Draft_10
 
postProcessHandshakeRequestAsClient(ClientHandshakeBuilder) - Method in class com.pusher.java_websocket.drafts.Draft_17
 
postProcessHandshakeRequestAsClient(ClientHandshakeBuilder) - Method in class com.pusher.java_websocket.drafts.Draft_75
 
postProcessHandshakeRequestAsClient(ClientHandshakeBuilder) - Method in class com.pusher.java_websocket.drafts.Draft_76
 
postProcessHandshakeResponseAsServer(ClientHandshake, ServerHandshakeBuilder) - Method in class com.pusher.java_websocket.drafts.Draft
 
postProcessHandshakeResponseAsServer(ClientHandshake, ServerHandshakeBuilder) - Method in class com.pusher.java_websocket.drafts.Draft_10
 
postProcessHandshakeResponseAsServer(ClientHandshake, ServerHandshakeBuilder) - Method in class com.pusher.java_websocket.drafts.Draft_75
 
postProcessHandshakeResponseAsServer(ClientHandshake, ServerHandshakeBuilder) - Method in class com.pusher.java_websocket.drafts.Draft_76
 
PROTOCOL_ERROR - Static variable in interface com.pusher.java_websocket.framing.CloseFrame
1002 indicates that an endpoint is terminating the connection due to a protocol error.
proxyHandshake - Variable in class com.pusher.java_websocket.client.AbstractClientProxyChannel
 
put(String, String) - Method in interface com.pusher.java_websocket.handshake.HandshakeBuilder
 
put(String, String) - Method in class com.pusher.java_websocket.handshake.HandshakedataImpl1
 
put(WebSocketImpl) - Method in class com.pusher.java_websocket.server.WebSocketServer.WebSocketWorker
 

R

RCVBUF - Static variable in class com.pusher.java_websocket.WebSocketImpl
 
read(ByteBuffer) - Method in class com.pusher.java_websocket.AbstractWrappedByteChannel
 
read(ByteBuffer, WebSocketImpl, ByteChannel) - Static method in class com.pusher.java_websocket.SocketChannelIOHelper
 
read(ByteBuffer) - Method in class com.pusher.java_websocket.SSLSocketChannel2
Blocks when in blocking mode until at least one byte has been decoded.
When not in blocking mode 0 may be returned.
read() - Method in class com.pusher.java_websocket.util.Base64.InputStream
Reads enough of the input stream to convert to/from Base64 and returns the next byte.
read(byte[], int, int) - Method in class com.pusher.java_websocket.util.Base64.InputStream
Calls Base64.InputStream.read() repeatedly until the end of stream is reached or len bytes are read.
readEngineResult - Variable in class com.pusher.java_websocket.SSLSocketChannel2
 
readingState - Variable in class com.pusher.java_websocket.drafts.Draft_75
Is only used to detect protocol violations
readLine(ByteBuffer) - Static method in class com.pusher.java_websocket.drafts.Draft
 
readMore(ByteBuffer) - Method in class com.pusher.java_websocket.AbstractWrappedByteChannel
 
readMore(ByteBuffer, WebSocketImpl, WrappedByteChannel) - Static method in class com.pusher.java_websocket.SocketChannelIOHelper
 
readMore(ByteBuffer) - Method in class com.pusher.java_websocket.SSLSocketChannel2
 
readMore(ByteBuffer) - Method in interface com.pusher.java_websocket.WrappedByteChannel
This function does not read data from the underlying channel at all.
readStringLine(ByteBuffer) - Static method in class com.pusher.java_websocket.drafts.Draft
 
readVersion(Handshakedata) - Static method in class com.pusher.java_websocket.drafts.Draft_10
 
readyframes - Variable in class com.pusher.java_websocket.drafts.Draft_75
 
REFUSE - Static variable in interface com.pusher.java_websocket.framing.CloseFrame
1003 indicates that an endpoint is terminating the connection because it has received a type of data it cannot accept (e.g.
releaseBuffers(WebSocket) - Method in class com.pusher.java_websocket.server.WebSocketServer
 
removeConnection(WebSocket) - Method in class com.pusher.java_websocket.server.WebSocketServer
This method performs remove operations on the connection and therefore also gives control over whether the operation shall be synchronized
reset() - Method in class com.pusher.java_websocket.drafts.Draft
 
reset() - Method in class com.pusher.java_websocket.drafts.Draft_10
 
reset() - Method in class com.pusher.java_websocket.drafts.Draft_75
 
resumeEncoding() - Method in class com.pusher.java_websocket.util.Base64.OutputStream
Resumes encoding of the stream.
role - Variable in class com.pusher.java_websocket.drafts.Draft
In some cases the handshake will be parsed different depending on whether
run() - Method in class com.pusher.java_websocket.client.WebSocketClient
 
run() - Method in class com.pusher.java_websocket.server.WebSocketServer
 
run() - Method in class com.pusher.java_websocket.server.WebSocketServer.WebSocketWorker
 

S

selectionKey - Variable in class com.pusher.java_websocket.SSLSocketChannel2
used to set interestOP SelectionKey.OP_WRITE for the underlying channel
send(String) - Method in class com.pusher.java_websocket.client.WebSocketClient
Sends text to the connected websocket server.
send(byte[]) - Method in class com.pusher.java_websocket.client.WebSocketClient
Sends binary data to the connected webSocket server.
send(ByteBuffer) - Method in class com.pusher.java_websocket.client.WebSocketClient
 
send(String) - Method in interface com.pusher.java_websocket.WebSocket
Send Text data to the other end.
send(ByteBuffer) - Method in interface com.pusher.java_websocket.WebSocket
Send Binary data (plain bytes) to the other end.
send(byte[]) - Method in interface com.pusher.java_websocket.WebSocket
 
send(String) - Method in class com.pusher.java_websocket.WebSocketImpl
Send Text data to the other end.
send(ByteBuffer) - Method in class com.pusher.java_websocket.WebSocketImpl
Send Binary data (plain bytes) to the other end.
send(byte[]) - Method in class com.pusher.java_websocket.WebSocketImpl
 
sendFragmentedFrame(Framedata.Opcode, ByteBuffer, boolean) - Method in class com.pusher.java_websocket.client.WebSocketClient
 
sendFragmentedFrame(Framedata.Opcode, ByteBuffer, boolean) - Method in interface com.pusher.java_websocket.WebSocket
Allows to send continuous/fragmented frames conveniently.
sendFragmentedFrame(Framedata.Opcode, ByteBuffer, boolean) - Method in class com.pusher.java_websocket.WebSocketImpl
 
sendFrame(Framedata) - Method in class com.pusher.java_websocket.client.WebSocketClient
 
sendFrame(Framedata) - Method in interface com.pusher.java_websocket.WebSocket
 
sendFrame(Framedata) - Method in class com.pusher.java_websocket.WebSocketImpl
 
ServerHandshake - Interface in com.pusher.java_websocket.handshake
 
ServerHandshakeBuilder - Interface in com.pusher.java_websocket.handshake
 
setContent(byte[]) - Method in interface com.pusher.java_websocket.handshake.HandshakeBuilder
 
setContent(byte[]) - Method in class com.pusher.java_websocket.handshake.HandshakedataImpl1
 
setFin(boolean) - Method in interface com.pusher.java_websocket.framing.FrameBuilder
 
setFin(boolean) - Method in class com.pusher.java_websocket.framing.FramedataImpl1
 
setHttpStatus(short) - Method in class com.pusher.java_websocket.handshake.HandshakeImpl1Server
 
setHttpStatus(short) - Method in interface com.pusher.java_websocket.handshake.ServerHandshakeBuilder
 
setHttpStatusMessage(String) - Method in class com.pusher.java_websocket.handshake.HandshakeImpl1Server
 
setHttpStatusMessage(String) - Method in interface com.pusher.java_websocket.handshake.ServerHandshakeBuilder
 
setOptcode(Framedata.Opcode) - Method in interface com.pusher.java_websocket.framing.FrameBuilder
 
setOptcode(Framedata.Opcode) - Method in class com.pusher.java_websocket.framing.FramedataImpl1
 
setParseMode(WebSocket.Role) - Method in class com.pusher.java_websocket.drafts.Draft
 
setPayload(ByteBuffer) - Method in class com.pusher.java_websocket.framing.CloseFrameBuilder
 
setPayload(ByteBuffer) - Method in interface com.pusher.java_websocket.framing.FrameBuilder
 
setPayload(ByteBuffer) - Method in class com.pusher.java_websocket.framing.FramedataImpl1
 
setProxy(Proxy) - Method in class com.pusher.java_websocket.client.WebSocketClient
 
setResourceDescriptor(String) - Method in interface com.pusher.java_websocket.handshake.ClientHandshakeBuilder
 
setResourceDescriptor(String) - Method in class com.pusher.java_websocket.handshake.HandshakeImpl1Client
 
setSocket(Socket) - Method in class com.pusher.java_websocket.client.WebSocketClient
Accepts bound and unbound sockets.
This method must be called before connect.
setTransferemasked(boolean) - Method in interface com.pusher.java_websocket.framing.FrameBuilder
 
setTransferemasked(boolean) - Method in class com.pusher.java_websocket.framing.FramedataImpl1
 
setWebSocketFactory(WebSocketServer.WebSocketServerFactory) - Method in class com.pusher.java_websocket.server.WebSocketServer
 
socket() - Method in class com.pusher.java_websocket.SSLSocketChannel2
 
socketChannel - Variable in class com.pusher.java_websocket.SSLSocketChannel2
the underlying channel
SocketChannelIOHelper - Class in com.pusher.java_websocket
 
SocketChannelIOHelper() - Constructor for class com.pusher.java_websocket.SocketChannelIOHelper
 
sslcontext - Variable in class com.pusher.java_websocket.server.DefaultSSLWebSocketServerFactory
 
sslEngine - Variable in class com.pusher.java_websocket.SSLSocketChannel2
 
SSLSocketChannel2 - Class in com.pusher.java_websocket
Implements the relevant portions of the SocketChannel interface with the SSLEngine wrapper.
SSLSocketChannel2(SocketChannel, SSLEngine, ExecutorService, SelectionKey) - Constructor for class com.pusher.java_websocket.SSLSocketChannel2
 
start() - Method in class com.pusher.java_websocket.server.WebSocketServer
Starts the server selectorthread that binds to the currently set port number and listeners for WebSocket connection requests.
START_OF_FRAME - Static variable in class com.pusher.java_websocket.drafts.Draft_75
The byte representing the beginning of a WebSocket text frame.
startHandshake(ClientHandshakeBuilder) - Method in class com.pusher.java_websocket.WebSocketImpl
 
stop(int) - Method in class com.pusher.java_websocket.server.WebSocketServer
Closes all connected clients sockets, then closes the underlying ServerSocketChannel, effectively killing the server socket selectorthread, freeing the port the server was bound to and stops all internal workerthreads.
stop() - Method in class com.pusher.java_websocket.server.WebSocketServer
 
stringAscii(byte[]) - Static method in class com.pusher.java_websocket.util.Charsetfunctions
 
stringAscii(byte[], int, int) - Static method in class com.pusher.java_websocket.util.Charsetfunctions
 
stringUtf8(byte[]) - Static method in class com.pusher.java_websocket.util.Charsetfunctions
 
stringUtf8(ByteBuffer) - Static method in class com.pusher.java_websocket.util.Charsetfunctions
 
suspendEncoding() - Method in class com.pusher.java_websocket.util.Base64.OutputStream
Suspends encoding of the stream.

T

tasks - Variable in class com.pusher.java_websocket.SSLSocketChannel2
 
TLS_ERROR - Static variable in interface com.pusher.java_websocket.framing.CloseFrame
1015 is a reserved value and MUST NOT be set as a status code in a Close control frame by an endpoint.
TOOBIG - Static variable in interface com.pusher.java_websocket.framing.CloseFrame
1009 indicates that an endpoint is terminating the connection because it has received a message which is too big for it to process.
toString() - Method in class com.pusher.java_websocket.framing.CloseFrameBuilder
 
toString() - Method in class com.pusher.java_websocket.framing.FramedataImpl1
 
toString() - Method in class com.pusher.java_websocket.WebSocketImpl
 
transferemasked - Variable in class com.pusher.java_websocket.framing.FramedataImpl1
 
translateFrame(ByteBuffer) - Method in class com.pusher.java_websocket.drafts.Draft
 
translateFrame(ByteBuffer) - Method in class com.pusher.java_websocket.drafts.Draft_10
 
translateFrame(ByteBuffer) - Method in class com.pusher.java_websocket.drafts.Draft_75
 
translateFrame(ByteBuffer) - Method in class com.pusher.java_websocket.drafts.Draft_76
 
translateHandshake(ByteBuffer) - Method in class com.pusher.java_websocket.drafts.Draft
 
translateHandshake(ByteBuffer) - Method in class com.pusher.java_websocket.drafts.Draft_76
 
translateHandshakeHttp(ByteBuffer, WebSocket.Role) - Static method in class com.pusher.java_websocket.drafts.Draft
 
translateRegularFrame(ByteBuffer) - Method in class com.pusher.java_websocket.drafts.Draft_75
 
translateSingleFrame(ByteBuffer) - Method in class com.pusher.java_websocket.drafts.Draft_10
 

U

UNEXPECTED_CONDITION - Static variable in interface com.pusher.java_websocket.framing.CloseFrame
1011 indicates that a server is terminating the connection because it encountered an unexpected condition that prevented it from fulfilling the request.
uri - Variable in class com.pusher.java_websocket.client.WebSocketClient
The URI this channel is supposed to connect to.
URL_SAFE - Static variable in class com.pusher.java_websocket.util.Base64
Encode using Base64-like encoding that is URL- and Filename-safe as described in Section 4 of RFC3548: http://www.faqs.org/rfcs/rfc3548.html.
utf8Bytes(String) - Static method in class com.pusher.java_websocket.util.Charsetfunctions
 

V

valueOf(String) - Static method in enum com.pusher.java_websocket.drafts.Draft.CloseHandshakeType
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum com.pusher.java_websocket.drafts.Draft.HandshakeState
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum com.pusher.java_websocket.framing.Framedata.Opcode
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum com.pusher.java_websocket.WebSocket.READYSTATE
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum com.pusher.java_websocket.WebSocket.Role
Returns the enum constant of this type with the specified name.
values() - Static method in enum com.pusher.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 com.pusher.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 com.pusher.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 com.pusher.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 com.pusher.java_websocket.WebSocket.Role
Returns an array containing the constants of this enum type, in the order they are declared.

W

WebSocket - Interface in com.pusher.java_websocket
 
WebSocket.READYSTATE - Enum in com.pusher.java_websocket
 
WebSocket.Role - Enum in com.pusher.java_websocket
 
WebSocketAdapter - Class in com.pusher.java_websocket
This class default implements all methods of the WebSocketListener that can be overridden optionally when advances functionalities is needed.
WebSocketAdapter() - Constructor for class com.pusher.java_websocket.WebSocketAdapter
 
WebSocketClient - Class in com.pusher.java_websocket.client
A subclass must implement at least onOpen, onClose, and onMessage to be useful.
WebSocketClient(URI) - Constructor for class com.pusher.java_websocket.client.WebSocketClient
This open a websocket connection as specified by rfc6455
WebSocketClient(URI, Draft) - Constructor for class com.pusher.java_websocket.client.WebSocketClient
Constructs a WebSocketClient instance and sets it to the connect to the specified URI.
WebSocketClient(URI, Draft, Map<String, String>, int) - Constructor for class com.pusher.java_websocket.client.WebSocketClient
 
WebSocketFactory - Interface in com.pusher.java_websocket
 
WebSocketImpl - Class in com.pusher.java_websocket
Represents one end (client or server) of a single WebSocketImpl connection.
WebSocketImpl(WebSocketListener, List<Draft>) - Constructor for class com.pusher.java_websocket.WebSocketImpl
crates a websocket with server role
WebSocketImpl(WebSocketListener, Draft) - Constructor for class com.pusher.java_websocket.WebSocketImpl
crates a websocket with client role
WebSocketImpl(WebSocketListener, Draft, Socket) - Constructor for class com.pusher.java_websocket.WebSocketImpl
Deprecated.
WebSocketImpl(WebSocketListener, List<Draft>, Socket) - Constructor for class com.pusher.java_websocket.WebSocketImpl
Deprecated.
WebSocketListener - Interface in com.pusher.java_websocket
Implemented by WebSocketClient and WebSocketServer.
WebsocketNotConnectedException - Exception in com.pusher.java_websocket.exceptions
 
WebsocketNotConnectedException() - Constructor for exception com.pusher.java_websocket.exceptions.WebsocketNotConnectedException
 
WebSocketServer - Class in com.pusher.java_websocket.server
WebSocketServer is an abstract class that only takes care of the HTTP handshake portion of WebSockets.
WebSocketServer() - Constructor for class com.pusher.java_websocket.server.WebSocketServer
Creates a WebSocketServer that will attempt to listen on port WebSocket.DEFAULT_PORT.
WebSocketServer(InetSocketAddress) - Constructor for class com.pusher.java_websocket.server.WebSocketServer
Creates a WebSocketServer that will attempt to bind/listen on the given address.
WebSocketServer(InetSocketAddress, int) - Constructor for class com.pusher.java_websocket.server.WebSocketServer
 
WebSocketServer(InetSocketAddress, List<Draft>) - Constructor for class com.pusher.java_websocket.server.WebSocketServer
 
WebSocketServer(InetSocketAddress, int, List<Draft>) - Constructor for class com.pusher.java_websocket.server.WebSocketServer
 
WebSocketServer(InetSocketAddress, int, List<Draft>, Collection<WebSocket>) - Constructor for class com.pusher.java_websocket.server.WebSocketServer
Creates a WebSocketServer that will attempt to bind/listen on the given address, and comply with Draft version draft.
WebSocketServer.WebSocketServerFactory - Interface in com.pusher.java_websocket.server
 
WebSocketServer.WebSocketWorker - Class in com.pusher.java_websocket.server
 
WebSocketWorker() - Constructor for class com.pusher.java_websocket.server.WebSocketServer.WebSocketWorker
 
workerThread - Variable in class com.pusher.java_websocket.WebSocketImpl
Helper variable meant to store the thread which ( exclusively ) triggers this objects decode method.
wrapChannel(SocketChannel, SelectionKey) - Method in class com.pusher.java_websocket.server.DefaultSSLWebSocketServerFactory
 
wrapChannel(SocketChannel, SelectionKey) - Method in class com.pusher.java_websocket.server.DefaultWebSocketServerFactory
 
wrapChannel(SocketChannel, SelectionKey) - Method in interface com.pusher.java_websocket.server.WebSocketServer.WebSocketServerFactory
Allows to wrap the Socketchannel( key.channel() ) to insert a protocol layer( like ssl or proxy authentication) beyond the ws layer.
WrappedByteChannel - Interface in com.pusher.java_websocket
 
write(ByteBuffer) - Method in class com.pusher.java_websocket.AbstractWrappedByteChannel
 
write(ByteBuffer) - Method in class com.pusher.java_websocket.client.AbstractClientProxyChannel
 
write(ByteBuffer) - Method in class com.pusher.java_websocket.SSLSocketChannel2
 
write(int) - Method in class com.pusher.java_websocket.util.Base64.OutputStream
Writes the byte to the output stream after converting to/from Base64 notation.
write(byte[], int, int) - Method in class com.pusher.java_websocket.util.Base64.OutputStream
Calls Base64.OutputStream.write(int) repeatedly until len bytes are written.
writeEngineResult - Variable in class com.pusher.java_websocket.SSLSocketChannel2
 
writeMore() - Method in class com.pusher.java_websocket.AbstractWrappedByteChannel
 
writeMore() - Method in class com.pusher.java_websocket.SSLSocketChannel2
 
writeMore() - Method in interface com.pusher.java_websocket.WrappedByteChannel
 
A B C D E F G H I K L M N O P R S T U V W 
Skip navigation links