Package | Description |
---|---|
org.java_websocket | |
org.java_websocket.client |
This package encapsulates all implementations in relation with the WebSocketClient.
|
org.java_websocket.drafts |
This package encapsulates all implementations in relation with the WebSocket drafts.
|
org.java_websocket.extensions |
This package encapsulates all interfaces and implementations in relation with the WebSocket
Sec-WebSocket-Extensions.
|
org.java_websocket.extensions.permessage_deflate | |
org.java_websocket.framing |
This package encapsulates all interfaces and implementations in relation with the WebSocket
frames.
|
Modifier and Type | Method and Description |
---|---|
void |
WebSocketListener.onWebsocketPing(WebSocket conn,
Framedata f)
Called a ping frame has been received.
|
void |
WebSocketAdapter.onWebsocketPing(WebSocket conn,
Framedata f)
This default implementation will send a pong in response to the received ping.
|
void |
WebSocketListener.onWebsocketPong(WebSocket conn,
Framedata f)
Called when a pong frame is received.
|
void |
WebSocketAdapter.onWebsocketPong(WebSocket conn,
Framedata f)
This default implementation does not do anything.
|
void |
WebSocketImpl.sendFrame(Framedata framedata) |
void |
WebSocket.sendFrame(Framedata framedata)
Send a frame to the other end
|
Modifier and Type | Method and Description |
---|---|
void |
WebSocketImpl.sendFrame(Collection<Framedata> frames) |
void |
WebSocket.sendFrame(Collection<Framedata> frames)
Send a collection of frames to the other end
|
Modifier and Type | Method and Description |
---|---|
void |
WebSocketClient.sendFrame(Framedata framedata) |
Modifier and Type | Method and Description |
---|---|
void |
WebSocketClient.sendFrame(Collection<Framedata> frames) |
Modifier and Type | Method and Description |
---|---|
List<Framedata> |
Draft.continuousFrame(Opcode op,
ByteBuffer buffer,
boolean fin) |
List<Framedata> |
Draft_6455.createFrames(ByteBuffer binary,
boolean mask) |
abstract List<Framedata> |
Draft.createFrames(ByteBuffer binary,
boolean mask) |
List<Framedata> |
Draft_6455.createFrames(String text,
boolean mask) |
abstract List<Framedata> |
Draft.createFrames(String text,
boolean mask) |
List<Framedata> |
Draft_6455.translateFrame(ByteBuffer buffer) |
abstract List<Framedata> |
Draft.translateFrame(ByteBuffer buffer) |
Modifier and Type | Method and Description |
---|---|
ByteBuffer |
Draft_6455.createBinaryFrame(Framedata framedata) |
abstract ByteBuffer |
Draft.createBinaryFrame(Framedata framedata) |
void |
Draft_6455.processFrame(WebSocketImpl webSocketImpl,
Framedata frame) |
abstract void |
Draft.processFrame(WebSocketImpl webSocketImpl,
Framedata frame)
Handle the frame specific to the draft
|
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.encodeFrame(Framedata inputFrame)
Encode a frame with a extension specific algorithm.
|
void |
DefaultExtension.encodeFrame(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 |
PerMessageDeflateExtension.decodeFrame(Framedata inputFrame) |
void |
PerMessageDeflateExtension.encodeFrame(Framedata inputFrame) |
void |
PerMessageDeflateExtension.isFrameValid(Framedata inputFrame)
This extension requires the RSV1 bit to be set only for the first frame.
|
Modifier and Type | Class and Description |
---|---|
class |
BinaryFrame
Class to represent a binary frame
|
class |
CloseFrame
Class to represent a close frame
|
class |
ContinuousFrame
Class to represent a continuous frame
|
class |
ControlFrame
Abstract class to represent control frames
|
class |
DataFrame
Abstract class to represent data frames
|
class |
FramedataImpl1
Abstract implementation of a frame
|
class |
PingFrame
Class to represent a ping frame
|
class |
PongFrame
Class to represent a pong frame
|
class |
TextFrame
Class to represent a text frames
|
Modifier and Type | Method and Description |
---|---|
void |
FramedataImpl1.append(Framedata nextframe) |
void |
Framedata.append(Framedata nextframe)
Appends an additional frame to the current frame
This methods does not override the opcode, but does override the fin
|
Copyright © 2022. All rights reserved.