Package | Description |
---|---|
org.java_websocket | |
org.java_websocket.drafts |
This package encapsulates all implementations in relation with the WebSocket drafts.
|
org.java_websocket.exceptions |
This package encapsulates all implementations in relation with the exceptions thrown in this lib.
|
org.java_websocket.extensions |
This package encapsulates all interfaces and implementations in relation with the WebSocket Sec-WebSocket-Extensions.
|
org.java_websocket.framing |
This package encapsulates all interfaces and implementations in relation with the WebSocket frames.
|
org.java_websocket.server |
This package encapsulates all implementations in relation with the WebSocketServer.
|
org.java_websocket.util |
This package encapsulates the utility classes.
|
Modifier and Type | Method and Description |
---|---|
void |
WebSocketImpl.close(InvalidDataException e) |
Modifier and Type | Method and Description |
---|---|
void |
WebSocketListener.onWebsocketHandshakeReceivedAsClient(WebSocket conn,
ClientHandshake request,
ServerHandshake response)
Called on the client side when the socket connection is first established, and the WebSocketImpl
handshake response has been received.
|
void |
WebSocketAdapter.onWebsocketHandshakeReceivedAsClient(WebSocket conn,
ClientHandshake request,
ServerHandshake response) |
ServerHandshakeBuilder |
WebSocketListener.onWebsocketHandshakeReceivedAsServer(WebSocket conn,
Draft draft,
ClientHandshake request)
Called on the server side when the socket connection is first established, and the WebSocket
handshake has been received.
|
ServerHandshakeBuilder |
WebSocketAdapter.onWebsocketHandshakeReceivedAsServer(WebSocket conn,
Draft draft,
ClientHandshake request)
This default implementation does not do anything.
|
void |
WebSocketListener.onWebsocketHandshakeSentAsClient(WebSocket conn,
ClientHandshake request)
Called on the client side when the socket connection is first established, and the WebSocketImpl
handshake has just been sent.
|
void |
WebSocketAdapter.onWebsocketHandshakeSentAsClient(WebSocket conn,
ClientHandshake request)
This default implementation does not do anything which will cause the connections to always progress.
|
Modifier and Type | Method and Description |
---|---|
int |
Draft.checkAlloc(int bytecount) |
void |
Draft_6455.processFrame(WebSocketImpl webSocketImpl,
Framedata frame) |
abstract void |
Draft.processFrame(WebSocketImpl webSocketImpl,
Framedata frame)
Handle the frame specific to the draft
|
List<Framedata> |
Draft_6455.translateFrame(ByteBuffer buffer) |
abstract List<Framedata> |
Draft.translateFrame(ByteBuffer buffer) |
Framedata |
Draft_6455.translateSingleFrame(ByteBuffer buffer) |
Modifier and Type | Class and Description |
---|---|
class |
InvalidFrameException
exception which indicates that a invalid frame was recieved (CloseFrame.PROTOCOL_ERROR)
|
class |
InvalidHandshakeException
exception which indicates that a invalid handshake was recieved (CloseFrame.PROTOCOL_ERROR)
|
class |
LimitExedeedException
exception which indicates that the message limited was exedeeded (CloseFrame.TOOBIG)
|
Modifier and Type | Method and Description |
---|---|
void |
IExtension.decodeFrame(Framedata inputFrame)
Decode a frame with a extension specific algorithm.
|
void |
DefaultExtension.decodeFrame(Framedata inputFrame) |
void |
IExtension.isFrameValid(Framedata inputFrame)
Check if the received frame is correctly implemented by the other endpoint and there are no specification errors (like wrongly set RSV)
|
void |
DefaultExtension.isFrameValid(Framedata inputFrame) |
void |
CompressionExtension.isFrameValid(Framedata inputFrame) |
Modifier and Type | Method and Description |
---|---|
void |
TextFrame.isValid() |
abstract void |
FramedataImpl1.isValid()
Check if the frame is valid due to specification
|
void |
DataFrame.isValid() |
void |
ControlFrame.isValid() |
void |
CloseFrame.isValid() |
Modifier and Type | Method and Description |
---|---|
ServerHandshakeBuilder |
WebSocketServer.onWebsocketHandshakeReceivedAsServer(WebSocket conn,
Draft draft,
ClientHandshake request) |
Modifier and Type | Method and Description |
---|---|
static String |
Charsetfunctions.stringUtf8(byte[] bytes) |
static String |
Charsetfunctions.stringUtf8(ByteBuffer bytes) |
Copyright © 2018. All rights reserved.