Overview
Package
Class
Tree
Deprecated
Index
Help
PREV NEXT
FRAMES
NO FRAMES
All Classes
A
B
C
E
G
H
I
M
O
R
S
W
A
AbstractWebSocket
- Class in
websocket4j
This class implements common functionality of server and client side web socket.
AbstractWebSocket(Socket, Integer, Object...)
- Constructor for class websocket4j.
AbstractWebSocket
Creates new WebSocket instance using given socket for communication and limiting handshake time to given milliseconds.
accept()
- Method in class websocket4j.server.
WebServerSocket
Accepts a new connection to the socket.
B
byteCollectionToString(Collection<Byte>)
- Method in class websocket4j.
AbstractWebSocket
Creates a string from given byte collection.
C
close()
- Method in class websocket4j.
AbstractWebSocket
Closes the connection.
close()
- Method in class websocket4j.server.
WebServerSocket
Closes the socket.
E
EchoClient
- Class in
websocket4j.examples
Example presenting an echo client using WebSocket4J.
EchoClient()
- Constructor for class websocket4j.examples.
EchoClient
EchoServer
- Class in
websocket4j.examples
Example presenting an echo server using WebSocket4j.
EchoServer(WebSocket)
- Constructor for class websocket4j.examples.
EchoServer
G
getLocalPort()
- Method in class websocket4j.server.
WebServerSocket
Returns local port to which this socket is bound.
getMessage()
- Method in class websocket4j.
AbstractWebSocket
Gets a message form the other party.
getRequestUri()
- Method in class websocket4j.server.
WebSocket
Returns Request-URI part of the handshake header as specified in HTTP protocol.
H
handshake(Object...)
- Method in class websocket4j.
AbstractWebSocket
Performs an opening handshake.
handshake(Object...)
- Method in class websocket4j.client.
WebSocket
Performs an opening handshake with the server.
handshake(Object...)
- Method in class websocket4j.server.
WebSocket
Performs an opening handshake with the client.
I
in
- Variable in class websocket4j.
AbstractWebSocket
isClosed()
- Method in class websocket4j.
AbstractWebSocket
Checks if this socket is closed.
isClosed()
- Method in class websocket4j.server.
WebServerSocket
Checks if this socket is closed.
M
main(String[])
- Static method in class websocket4j.examples.
EchoClient
main(String[])
- Static method in class websocket4j.examples.
EchoServer
makeResponseToken(int, int, byte[])
- Method in class websocket4j.
AbstractWebSocket
Generates response to client's opening handshake challenge.
O
out
- Variable in class websocket4j.
AbstractWebSocket
R
readBytes(Integer)
- Method in class websocket4j.
AbstractWebSocket
Reads given number of bytes from the socket.
readLine()
- Method in class websocket4j.
AbstractWebSocket
Reads line (terminated by "\r\n") from the socket.
run()
- Method in class websocket4j.examples.
EchoServer
S
sendMessage(String)
- Method in class websocket4j.
AbstractWebSocket
Sends a message to the other party.
setSoTimeout(Integer)
- Method in class websocket4j.server.
WebServerSocket
Sets maximum timeout for accept.
socket
- Variable in class websocket4j.
AbstractWebSocket
W
WebServerSocket
- Class in
websocket4j.server
Server socket that accepts
WebSocket
s.
WebServerSocket()
- Constructor for class websocket4j.server.
WebServerSocket
Creates new WebServerSocket on random port.
WebServerSocket(Integer)
- Constructor for class websocket4j.server.
WebServerSocket
Creates new WebServerSocket on given port.
WebSocket
- Class in
websocket4j.client
Socket wrapper that implements client side of the WebSocket protocol.
WebSocket(String, Integer, String, Integer)
- Constructor for class websocket4j.client.
WebSocket
Creates new web socket connected to given host and port, requesting given URI.
WebSocket(String, Integer, String)
- Constructor for class websocket4j.client.
WebSocket
Creates new web socket connected to given host and port, requesting given URI.
WebSocket
- Class in
websocket4j.server
Socket wrapper that implements server side of the WebSocket protocol.
WebSocket(Socket)
- Constructor for class websocket4j.server.
WebSocket
Creates new web socket ready for use.
WebSocket(Socket, Integer)
- Constructor for class websocket4j.server.
WebSocket
Creates new web socket ready for use, if opening handshake doesn't finish in given time, socket creation will be aborted (if given time is 0, it will wait as long as needed).
websocket4j
- package websocket4j
websocket4j.client
- package websocket4j.client
websocket4j.examples
- package websocket4j.examples
websocket4j.server
- package websocket4j.server
writeLine(String)
- Method in class websocket4j.
AbstractWebSocket
Writes given line to socket.
A
B
C
E
G
H
I
M
O
R
S
W
Overview
Package
Class
Tree
Deprecated
Index
Help
PREV NEXT
FRAMES
NO FRAMES
All Classes