Package | Description |
---|---|
org.glassfish.grizzly.websockets | |
org.glassfish.grizzly.websockets.frametypes |
Modifier and Type | Class and Description |
---|---|
class |
DefaultWebSocket |
class |
SimpleWebSocket
Generic WebSocket implementation.
|
Modifier and Type | Field and Description |
---|---|
WebSocket |
WebSocketHolder.webSocket |
Modifier and Type | Method and Description |
---|---|
WebSocket |
WebSocketApplication.createSocket(ProtocolHandler handler,
HttpRequestPacket requestPacket,
WebSocketListener... listeners)
Factory method to create new
WebSocket instances. |
WebSocket |
WebSocketApplication.createSocket(ProtocolHandler handler,
WebSocketListener... listeners)
|
WebSocket |
ProtocolHandler.getWebSocket() |
static WebSocket |
WebSocketHolder.getWebSocket(Connection connection) |
Modifier and Type | Method and Description |
---|---|
protected Set<WebSocket> |
WebSocketApplication.getWebSockets()
Returns a set of
WebSocket s, registered with the application. |
Modifier and Type | Method and Description |
---|---|
protected boolean |
WebSocketApplication.add(WebSocket socket)
Associates the specified
WebSocket with this application. |
void |
WebSocketListener.onClose(WebSocket socket,
DataFrame frame)
Invoked when
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
onClose(DataFrame) is invoked, the WebSocket
will be unassociated with this application and closed. |
void |
WebSocketListener.onConnect(WebSocket socket)
Invoked when the opening handshake has been completed for a specific
WebSocket instance. |
void |
WebSocketAdapter.onConnect(WebSocket socket) |
void |
WebSocketApplication.onConnect(WebSocket socket)
|
protected boolean |
WebSocketApplication.onError(WebSocket webSocket,
Throwable t)
This method will be invoked if an unexpected exception is caught by
the WebSocket runtime.
|
void |
WebSocketListener.onFragment(WebSocket socket,
byte[] fragment,
boolean last)
Invoked when
onFragment(boolean, byte[]) has been called
on a particular WebSocket instance. |
void |
WebSocketAdapter.onFragment(WebSocket socket,
byte[] fragment,
boolean last) |
void |
WebSocketListener.onFragment(WebSocket socket,
String fragment,
boolean last)
Invoked when
onFragment(boolean, String) has been called
on a particular WebSocket instance. |
void |
WebSocketAdapter.onFragment(WebSocket socket,
String fragment,
boolean last) |
void |
WebSocketListener.onMessage(WebSocket socket,
byte[] bytes)
Invoked when
onMessage(String) has been called on a
particular WebSocket instance. |
void |
WebSocketAdapter.onMessage(WebSocket socket,
byte[] bytes) |
void |
WebSocketListener.onMessage(WebSocket socket,
String text)
Invoked when
onMessage(String) has been called on a
particular WebSocket instance. |
void |
WebSocketAdapter.onMessage(WebSocket socket,
String text) |
void |
WebSocketListener.onPing(WebSocket socket,
byte[] bytes)
Invoked when
onPing(DataFrame) has been called on a
particular WebSocket instance. |
void |
WebSocketAdapter.onPing(WebSocket socket,
byte[] bytes) |
void |
WebSocketListener.onPong(WebSocket socket,
byte[] bytes)
Invoked when
onPong(DataFrame) has been called on a
particular WebSocket instance. |
void |
WebSocketAdapter.onPong(WebSocket socket,
byte[] bytes) |
boolean |
WebSocketApplication.remove(WebSocket socket)
Unassociates the specified
WebSocket with this application. |
void |
DataFrame.respond(WebSocket socket) |
void |
FrameType.respond(WebSocket socket,
DataFrame frame) |
static WebSocketHolder |
WebSocketHolder.set(Connection connection,
ProtocolHandler handler,
WebSocket socket) |
void |
ProtocolHandler.setWebSocket(WebSocket webSocket) |
Modifier and Type | Method and Description |
---|---|
void |
Broadcaster.broadcast(Iterable<? extends WebSocket> recipients,
byte[] binary)
Broadcasts the provided binary content to the specified recipients.
|
void |
WebSocket.broadcast(Iterable<? extends WebSocket> recipients,
byte[] data)
Broadcasts the data to the remote end-point set.
|
void |
DummyBroadcaster.broadcast(Iterable<? extends WebSocket> recipients,
byte[] binary)
Broadcasts the provided binary content to the specified recipients.
|
void |
OptimizedBroadcaster.broadcast(Iterable<? extends WebSocket> recipients,
byte[] binary)
Broadcasts the provided binary content to the specified recipients.
|
void |
SimpleWebSocket.broadcast(Iterable<? extends WebSocket> recipients,
byte[] data) |
void |
Broadcaster.broadcast(Iterable<? extends WebSocket> recipients,
String text)
Broadcasts the provided text content to the specified recipients.
|
void |
WebSocket.broadcast(Iterable<? extends WebSocket> recipients,
String data)
Broadcasts the data to the remote end-point set.
|
void |
DummyBroadcaster.broadcast(Iterable<? extends WebSocket> recipients,
String text)
Broadcasts the provided text content to the specified recipients.
|
void |
OptimizedBroadcaster.broadcast(Iterable<? extends WebSocket> recipients,
String text)
Broadcasts the provided text content to the specified recipients.
|
void |
SimpleWebSocket.broadcast(Iterable<? extends WebSocket> recipients,
String data) |
void |
Broadcaster.broadcastFragment(Iterable<? extends WebSocket> recipients,
byte[] binary,
boolean last)
Broadcasts the provided fragmented binary content to the specified recipients.
|
void |
WebSocket.broadcastFragment(Iterable<? extends WebSocket> recipients,
byte[] data,
boolean last)
Broadcasts the data fragment to the remote end-point set.
|
void |
DummyBroadcaster.broadcastFragment(Iterable<? extends WebSocket> recipients,
byte[] binary,
boolean last)
Broadcasts the provided fragmented binary content to the specified recipients.
|
void |
OptimizedBroadcaster.broadcastFragment(Iterable<? extends WebSocket> recipients,
byte[] binary,
boolean last) |
void |
SimpleWebSocket.broadcastFragment(Iterable<? extends WebSocket> recipients,
byte[] data,
boolean last) |
void |
Broadcaster.broadcastFragment(Iterable<? extends WebSocket> recipients,
String text,
boolean last)
Broadcasts the provided fragmented text content to the specified recipients.
|
void |
WebSocket.broadcastFragment(Iterable<? extends WebSocket> recipients,
String data,
boolean last)
Broadcasts the data fragment to the remote end-point set.
|
void |
DummyBroadcaster.broadcastFragment(Iterable<? extends WebSocket> recipients,
String text,
boolean last)
Broadcasts the provided fragmented text content to the specified recipients.
|
void |
OptimizedBroadcaster.broadcastFragment(Iterable<? extends WebSocket> recipients,
String text,
boolean last) |
void |
SimpleWebSocket.broadcastFragment(Iterable<? extends WebSocket> recipients,
String data,
boolean last) |
Modifier and Type | Method and Description |
---|---|
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) |
Copyright © 2014 Oracle Corporation. All rights reserved.