C D E G L N O R S U V W

C

close() - Method in class net.tootallnate.websocket.WebSocket
Closes the underlying SocketChannel, and calls the listener's onClose event handler.
close() - Method in class net.tootallnate.websocket.WebSocketClient
Calls close on the underlying SocketChannel, which in turn closes the socket connection, and ends the client socket thread.
connect() - Method in class net.tootallnate.websocket.WebSocketClient
Starts a background thread that attempts and maintains a WebSocket connection to the URI specified in the constructor or via setURI.
connections() - Method in class net.tootallnate.websocket.WebSocketServer
Returns a WebSocket[] of currently connected clients.
CR - Static variable in class net.tootallnate.websocket.WebSocket
The byte representing CR, or Carriage Return, or \r

D

DEFAULT_PORT - Static variable in class net.tootallnate.websocket.WebSocket
The default port of WebSockets, as defined in the spec.

E

END_OF_FRAME - Static variable in class net.tootallnate.websocket.WebSocket
The byte representing the end of a WebSocket text frame.

G

getDraft() - Method in class net.tootallnate.websocket.WebSocketClient
 
getDraft() - Method in class net.tootallnate.websocket.WebSocketServer
 
getFlashSecurityPolicy() - Method in class net.tootallnate.websocket.WebSocketServer
Gets the XML string that should be returned if a client requests a Flash security policy.
getPort() - Method in class net.tootallnate.websocket.WebSocketServer
Gets the port number that this server listens on.
getURI() - Method in class net.tootallnate.websocket.WebSocketClient
Gets the URI that this WebSocketClient is connected to.

L

LF - Static variable in class net.tootallnate.websocket.WebSocket
The byte representing LF, or Line Feed, or \n

N

net.tootallnate.websocket - package net.tootallnate.websocket
 

O

onClientClose(WebSocket) - Method in class net.tootallnate.websocket.WebSocketServer
 
onClientMessage(WebSocket, String) - Method in class net.tootallnate.websocket.WebSocketServer
 
onClientOpen(WebSocket) - Method in class net.tootallnate.websocket.WebSocketServer
 
onClose(WebSocket) - Method in class net.tootallnate.websocket.WebSocketClient
Calls subclass' implementation of onClose.
onClose() - Method in class net.tootallnate.websocket.WebSocketClient
 
onClose(WebSocket) - Method in class net.tootallnate.websocket.WebSocketServer
 
onHandshakeRecieved(WebSocket, String, byte[]) - Method in class net.tootallnate.websocket.WebSocketClient
Parses the server's handshake to verify that it's a valid WebSocket handshake.
onHandshakeRecieved(WebSocket, String, byte[]) - Method in class net.tootallnate.websocket.WebSocketServer
Called by a WebSocket instance when a client connection has finished sending a handshake.
onMessage(WebSocket, String) - Method in class net.tootallnate.websocket.WebSocketClient
Calls subclass' implementation of onMessage.
onMessage(String) - Method in class net.tootallnate.websocket.WebSocketClient
 
onMessage(WebSocket, String) - Method in class net.tootallnate.websocket.WebSocketServer
 
onOpen(WebSocket) - Method in class net.tootallnate.websocket.WebSocketClient
Calls subclass' implementation of onOpen.
onOpen() - Method in class net.tootallnate.websocket.WebSocketClient
 
onOpen(WebSocket) - Method in class net.tootallnate.websocket.WebSocketServer
 

R

run() - Method in class net.tootallnate.websocket.WebSocketClient
 
run() - Method in class net.tootallnate.websocket.WebSocketServer
 

S

send(String) - Method in class net.tootallnate.websocket.WebSocket
 
send(String) - Method in class net.tootallnate.websocket.WebSocketClient
Sends text to the connected WebSocket server.
sendToAll(String) - Method in class net.tootallnate.websocket.WebSocketServer
Sends text to all currently connected WebSocket clients.
sendToAllExcept(WebSocket, String) - Method in class net.tootallnate.websocket.WebSocketServer
Sends text to all currently connected WebSocket clients, except for the specified connection.
sendToAllExcept(Set<WebSocket>, String) - Method in class net.tootallnate.websocket.WebSocketServer
Sends text to all currently connected WebSocket clients, except for those found in the Set connections.
setPort(int) - Method in class net.tootallnate.websocket.WebSocketServer
Sets the port that this WebSocketServer should listen on.
socketChannel() - Method in class net.tootallnate.websocket.WebSocket
 
start() - Method in class net.tootallnate.websocket.WebSocketServer
Starts the server thread that binds to the currently set port number and listeners for WebSocket connection requests.
START_OF_FRAME - Static variable in class net.tootallnate.websocket.WebSocket
The byte representing the beginning of a WebSocket text frame.
stop() - Method in class net.tootallnate.websocket.WebSocketServer
Closes all connected clients sockets, then closes the underlying ServerSocketChannel, effectively killing the server socket thread and freeing the port the server was bound to.

U

UTF8_CHARSET - Static variable in class net.tootallnate.websocket.WebSocket
The WebSocket protocol expects UTF-8 encoded bytes.

V

valueOf(String) - Static method in enum net.tootallnate.websocket.WebSocketDraft
Returns the enum constant of this type with the specified name.
values() - Static method in enum net.tootallnate.websocket.WebSocketDraft
Returns an array containing the constants of this enum type, in the order they are declared.

W

WebSocket - Class in net.tootallnate.websocket
Represents one end (client or server) of a single WebSocket connection.
WebSocketClient - Class in net.tootallnate.websocket
The WebSocketClient is an abstract class that expects a valid "ws://" URI to connect to.
WebSocketClient(URI) - Constructor for class net.tootallnate.websocket.WebSocketClient
 
WebSocketClient(URI, WebSocketDraft) - Constructor for class net.tootallnate.websocket.WebSocketClient
Constructs a WebSocketClient instance and sets it to the connect to the specified URI.
WebSocketDraft - Enum in net.tootallnate.websocket
Enum for WebSocket Draft
WebSocketServer - Class in net.tootallnate.websocket
WebSocketServer is an abstract class that only takes care of the HTTP handshake portion of WebSockets.
WebSocketServer() - Constructor for class net.tootallnate.websocket.WebSocketServer
Nullary constructor.
WebSocketServer(int) - Constructor for class net.tootallnate.websocket.WebSocketServer
Creates a WebSocketServer that will attempt to listen on port port.
WebSocketServer(int, WebSocketDraft) - Constructor for class net.tootallnate.websocket.WebSocketServer
Creates a WebSocketServer that will attempt to listen on port port, and comply with WebSocketDraft version draft.

C D E G L N O R S U V W