|
||||||||||
| PREV NEXT | FRAMES NO FRAMES | |||||||||
| Packages that use WebSocket | |
|---|---|
| org.glassfish.grizzly.websockets | |
| org.glassfish.grizzly.websockets.frametypes | |
| Uses of WebSocket in org.glassfish.grizzly.websockets |
|---|
| Classes in org.glassfish.grizzly.websockets that implement WebSocket | |
|---|---|
class |
DefaultWebSocket
|
| Fields in org.glassfish.grizzly.websockets declared as WebSocket | |
|---|---|
WebSocket |
WebSocketEngine.WebSocketHolder.webSocket
|
| Methods in org.glassfish.grizzly.websockets that return WebSocket | |
|---|---|
WebSocket |
WebSocketApplication.createSocket(ProtocolHandler handler,
HttpRequestPacket requestPacket,
WebSocketListener... listeners)
Factory method to create new WebSocket instances. |
WebSocket |
WebSocketApplication.createSocket(ProtocolHandler handler,
WebSocketListener... listeners)
Deprecated. Use WebSocketApplication.createSocket(ProtocolHandler, org.glassfish.grizzly.http.HttpRequestPacket, WebSocketListener...) |
WebSocket |
ProtocolHandler.getWebSocket()
|
WebSocket |
WebSocketEngine.getWebSocket(Connection connection)
Get the WebSocket associated with the Grizzly Connection, or null, if there none is
associated. |
| Methods in org.glassfish.grizzly.websockets that return types with arguments of type WebSocket | |
|---|---|
protected Set<WebSocket> |
WebSocketApplication.getWebSockets()
Returns a set of WebSockets, registered with the application. |
| Methods in org.glassfish.grizzly.websockets with parameters of type WebSocket | |
|---|---|
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 |
WebSocketApplication.onClose(WebSocket socket,
DataFrame frame)
When a onClose(DataFrame) is invoked, the WebSocket
will be unassociated with this application and closed. |
void |
WebSocketAdapter.onClose(WebSocket socket,
DataFrame frame)
|
void |
WebSocketListener.onConnect(WebSocket socket)
Invoked when the opening handshake has been completed for a specific WebSocket instance. |
void |
WebSocketApplication.onConnect(WebSocket socket)
When a new WebSocket connection is made to this application, the
WebSocket will be associated with this application. |
void |
WebSocketAdapter.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)
|
void |
ProtocolHandler.setWebSocket(WebSocket webSocket)
|
WebSocketEngine.WebSocketHolder |
WebSocketEngine.setWebSocketHolder(Connection connection,
ProtocolHandler handler,
WebSocket socket)
|
| Uses of WebSocket in org.glassfish.grizzly.websockets.frametypes |
|---|
| Methods in org.glassfish.grizzly.websockets.frametypes with parameters of type WebSocket | |
|---|---|
void |
TextFrameType.respond(WebSocket socket,
DataFrame frame)
|
void |
PongFrameType.respond(WebSocket socket,
DataFrame frame)
|
void |
PingFrameType.respond(WebSocket socket,
DataFrame frame)
|
void |
ContinuationFrameType.respond(WebSocket socket,
DataFrame frame)
|
void |
ClosingFrameType.respond(WebSocket socket,
DataFrame frame)
|
void |
BinaryFrameType.respond(WebSocket socket,
DataFrame frame)
|
|
||||||||||
| PREV NEXT | FRAMES NO FRAMES | |||||||||