Package | Description |
---|---|
org.glassfish.grizzly.websockets | |
org.glassfish.grizzly.websockets.frametypes | |
org.glassfish.grizzly.websockets.rfc6455 |
Modifier and Type | Class and Description |
---|---|
class |
ClosingFrame |
Modifier and Type | Method and Description |
---|---|
DataFrame |
FrameType.create(boolean fin,
byte[] data) |
DataFrame |
BaseFrameType.create(boolean fin,
byte[] data) |
DataFrame |
FrameCompletionHandler.getResult() |
abstract DataFrame |
ProtocolHandler.parse(Buffer buffer) |
DataFrame |
ProtocolHandler.toDataFrame(byte[] data) |
DataFrame |
ProtocolHandler.toDataFrame(byte[] data,
boolean last) |
DataFrame |
ProtocolHandler.toDataFrame(String data) |
DataFrame |
ProtocolHandler.toDataFrame(String data,
boolean last) |
DataFrame |
ProtocolHandler.unframe(Buffer buffer) |
Modifier and Type | Method and Description |
---|---|
GrizzlyFuture<DataFrame> |
ProtocolHandler.close(int code,
String reason) |
GrizzlyFuture<DataFrame> |
WebSocket.send(byte[] data)
Send a binary frame to the remote end-point.
|
GrizzlyFuture<DataFrame> |
SimpleWebSocket.send(byte[] data) |
GrizzlyFuture<DataFrame> |
ProtocolHandler.send(byte[] data) |
GrizzlyFuture<DataFrame> |
ProtocolHandler.send(DataFrame frame) |
GrizzlyFuture<DataFrame> |
ProtocolHandler.send(DataFrame frame,
CompletionHandler<DataFrame> completionHandler) |
GrizzlyFuture<DataFrame> |
WebSocket.send(String data)
Send a text frame to the remote end-point.
|
GrizzlyFuture<DataFrame> |
SimpleWebSocket.send(String data) |
GrizzlyFuture<DataFrame> |
ProtocolHandler.send(String data) |
GrizzlyFuture<DataFrame> |
WebSocket.sendPing(byte[] data)
Sends a
ping frame with the specified payload (if any). |
GrizzlyFuture<DataFrame> |
SimpleWebSocket.sendPing(byte[] data)
Sends a
ping frame with the specified payload (if any). |
GrizzlyFuture<DataFrame> |
WebSocket.sendPong(byte[] data)
Sends a
ping frame with the specified payload (if any). |
GrizzlyFuture<DataFrame> |
SimpleWebSocket.sendPong(byte[] data)
Sends a
ping frame with the specified payload (if any). |
GrizzlyFuture<DataFrame> |
WebSocket.stream(boolean last,
byte[] fragment,
int off,
int len)
Sends a fragment of a complete message.
|
GrizzlyFuture<DataFrame> |
SimpleWebSocket.stream(boolean last,
byte[] bytes,
int off,
int len) |
GrizzlyFuture<DataFrame> |
ProtocolHandler.stream(boolean last,
byte[] bytes,
int off,
int len) |
GrizzlyFuture<DataFrame> |
WebSocket.stream(boolean last,
String fragment)
Sends a fragment of a complete message.
|
GrizzlyFuture<DataFrame> |
SimpleWebSocket.stream(boolean last,
String fragment) |
GrizzlyFuture<DataFrame> |
ProtocolHandler.stream(boolean last,
String fragment) |
Modifier and Type | Method and Description |
---|---|
protected byte |
ProtocolHandler.checkForLastFrame(DataFrame frame,
byte opcode) |
void |
FrameCompletionHandler.completed(DataFrame result) |
abstract byte[] |
ProtocolHandler.frame(DataFrame frame) |
byte[] |
FrameType.getBytes(DataFrame dataFrame) |
byte[] |
BaseFrameType.getBytes(DataFrame dataFrame) |
void |
WebSocket.onClose(DataFrame frame)
This callback will be invoked when the remote end-point sent a closing
frame.
|
void |
SimpleWebSocket.onClose(DataFrame frame) |
void |
WebSocketListener.onClose(WebSocket socket,
DataFrame frame)
Invoked when
WebSocket.onClose(DataFrame) has been called on a
particular WebSocket instance. |
void |
WebSocketAdapter.onClose(WebSocket socket,
DataFrame frame) |
void |
WebSocketApplication.onClose(WebSocket socket,
DataFrame frame)
When a
WebSocket.onClose(DataFrame) is invoked, the WebSocket
will be unassociated with this application and closed. |
void |
WebSocket.onPing(DataFrame frame)
This callback will be invoked when the remote end-point has sent a ping
frame.
|
void |
SimpleWebSocket.onPing(DataFrame frame) |
void |
WebSocket.onPong(DataFrame frame)
This callback will be invoked when the remote end-point has sent a pong
frame.
|
void |
SimpleWebSocket.onPong(DataFrame frame) |
void |
FrameType.respond(WebSocket socket,
DataFrame frame) |
GrizzlyFuture<DataFrame> |
ProtocolHandler.send(DataFrame frame) |
GrizzlyFuture<DataFrame> |
ProtocolHandler.send(DataFrame frame,
CompletionHandler<DataFrame> completionHandler) |
void |
FrameType.setPayload(DataFrame frame,
byte[] data) |
void |
BaseFrameType.setPayload(DataFrame frame,
byte[] data) |
void |
FrameCompletionHandler.updated(DataFrame result) |
protected void |
ProtocolHandler.utf8Decode(boolean finalFragment,
byte[] data,
DataFrame dataFrame) |
Modifier and Type | Method and Description |
---|---|
GrizzlyFuture<DataFrame> |
ProtocolHandler.send(DataFrame frame,
CompletionHandler<DataFrame> completionHandler) |
Modifier and Type | Method and Description |
---|---|
DataFrame |
ClosingFrameType.create(boolean fin,
byte[] data) |
Modifier and Type | Method and Description |
---|---|
byte[] |
ContinuationFrameType.getBytes(DataFrame dataFrame) |
byte[] |
TextFrameType.getBytes(DataFrame dataFrame) |
void |
BinaryFrameType.respond(WebSocket socket,
DataFrame frame) |
void |
ContinuationFrameType.respond(WebSocket socket,
DataFrame frame) |
void |
ClosingFrameType.respond(WebSocket socket,
DataFrame frame) |
void |
TextFrameType.respond(WebSocket socket,
DataFrame frame) |
void |
PongFrameType.respond(WebSocket socket,
DataFrame frame) |
void |
PingFrameType.respond(WebSocket socket,
DataFrame frame) |
void |
ContinuationFrameType.setPayload(DataFrame frame,
byte[] data) |
void |
TextFrameType.setPayload(DataFrame frame,
byte[] data) |
Modifier and Type | Method and Description |
---|---|
DataFrame |
RFC6455Handler.parse(Buffer buffer) |
Modifier and Type | Method and Description |
---|---|
byte[] |
RFC6455Handler.frame(DataFrame frame) |
Copyright © 2014 Oracle Corporation. All rights reserved.