| Package | Description |
|---|---|
| org.glassfish.tyrus.websockets | |
| org.glassfish.tyrus.websockets.frametypes |
| Modifier and Type | Class and Description |
|---|---|
class |
DefaultWebSocket |
| Modifier and Type | Field and Description |
|---|---|
WebSocket |
WebSocketEngine.WebSocketHolder.webSocket |
| Modifier and Type | Method and Description |
|---|---|
WebSocket |
WebSocketApplication.createSocket(ProtocolHandler handler,
WebSocketRequest requestPacket,
WebSocketListener... listeners)
Factory method to create new
WebSocket instances. |
WebSocket |
ProtocolHandler.getWebSocket() |
WebSocket |
WebSocketEngine.getWebSocket(Connection connection)
Get the
WebSocket associated with the Grizzly Connection, or null, if there none is
associated. |
| Modifier and Type | Method and Description |
|---|---|
protected Set<WebSocket> |
WebSocketApplication.getWebSockets()
Returns a set of
WebSockets, registered with the application. |
| Modifier and Type | Method and Description |
|---|---|
void |
WebSocketApplication.onClose(WebSocket socket,
ClosingFrame frame)
When a
onClose(org.glassfish.tyrus.websockets.draft06.ClosingFrame) is invoked, the WebSocket
will be unassociated with this application and closed. |
void |
WebSocketListener.onClose(WebSocket socket,
ClosingFrame frame)
Invoked when
onClose(org.glassfish.tyrus.websockets.draft06.ClosingFrame) has been called on a
particular WebSocket instance. |
void |
WebSocketApplication.onConnect(WebSocket socket)
|
void |
WebSocketListener.onConnect(WebSocket socket)
Invoked when the opening handshake has been completed for a specific
WebSocket instance. |
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 |
WebSocketListener.onFragment(WebSocket socket,
String fragment,
boolean last)
Invoked when
onFragment(boolean, String) has been called
on a particular WebSocket instance. |
void |
WebSocketListener.onMessage(WebSocket socket,
byte[] bytes)
Invoked when
onMessage(String) has been called on a
particular WebSocket instance. |
void |
WebSocketListener.onMessage(WebSocket socket,
String text)
Invoked when
onMessage(String) has been called on a
particular WebSocket instance. |
void |
WebSocketListener.onPing(WebSocket socket,
byte[] bytes)
Invoked when
onPing(DataFrame) has been called on a
particular WebSocket instance. |
void |
WebSocketListener.onPong(WebSocket socket,
byte[] bytes)
Invoked when
onPong(DataFrame) has been called on a
particular WebSocket instance. |
void |
DataFrame.respond(WebSocket socket) |
void |
FrameType.respond(WebSocket socket,
DataFrame frame) |
void |
ProtocolHandler.setWebSocket(WebSocket webSocket) |
WebSocketEngine.WebSocketHolder |
WebSocketEngine.setWebSocketHolder(Connection connection,
ProtocolHandler handler,
WebSocket socket) |
| Modifier and Type | Method and Description |
|---|---|
void |
PongFrameType.respond(WebSocket socket,
DataFrame frame) |
void |
ContinuationFrameType.respond(WebSocket socket,
DataFrame frame) |
void |
TextFrameType.respond(WebSocket socket,
DataFrame frame) |
void |
BinaryFrameType.respond(WebSocket socket,
DataFrame frame) |
void |
PingFrameType.respond(WebSocket socket,
DataFrame frame) |
void |
ClosingFrameType.respond(WebSocket socket,
DataFrame frame) |
Copyright © 2012-2013. All Rights Reserved.