Package | Description |
---|---|
org.glassfish.tyrus.core | |
org.glassfish.tyrus.core.frame |
Modifier and Type | Method and Description |
---|---|
TyrusWebSocket |
TyrusEndpointWrapper.createSocket(ProtocolHandler handler)
Factory method to create new
TyrusWebSocket instances. |
Modifier and Type | Method and Description |
---|---|
Session |
TyrusEndpointWrapper.createSessionForRemoteEndpoint(TyrusWebSocket socket,
String subprotocol,
List<Extension> extensions)
Creates a Session based on the
TyrusWebSocket , subprotocols and extensions. |
void |
TyrusEndpointWrapper.onClose(TyrusWebSocket socket,
CloseReason closeReason)
Called by the provider when the web socket connection
to the given remote endpoint has just closed.
|
Session |
TyrusEndpointWrapper.onConnect(TyrusWebSocket socket,
UpgradeRequest upgradeRequest,
String subProtocol,
List<Extension> extensions,
String connectionId)
Called by the provider when the web socket connection
is established.
|
boolean |
TyrusEndpointWrapper.onError(TyrusWebSocket socket,
Throwable t)
This method will be invoked if an unexpected exception is caught by
the WebSocket runtime.
|
void |
TyrusEndpointWrapper.onMessage(TyrusWebSocket socket,
ByteBuffer messageBytes)
Called by the provider when the web socket connection
has an incoming text message from the given remote endpoint.
|
void |
TyrusEndpointWrapper.onMessage(TyrusWebSocket socket,
String messageString)
Called by the provider when the web socket connection
has an incoming text message from the given remote endpoint.
|
void |
TyrusEndpointWrapper.onPartialMessage(TyrusWebSocket socket,
ByteBuffer partialBytes,
boolean last)
Called by the provider when the web socket connection
has an incoming partial binary message from the given remote endpoint.
|
void |
TyrusEndpointWrapper.onPartialMessage(TyrusWebSocket socket,
String partialString,
boolean last)
Called by the provider when the web socket connection
has an incoming partial text message from the given remote endpoint.
|
void |
TyrusEndpointWrapper.onPing(TyrusWebSocket socket,
ByteBuffer bytes)
Called by the provider when the web socket connection
has an incoming ping message from the given remote endpoint.
|
void |
TyrusEndpointWrapper.onPong(TyrusWebSocket socket,
ByteBuffer bytes)
Called by the provider when the web socket connection
has an incoming pong message from the given remote endpoint.
|
void |
ProtocolHandler.process(Frame frame,
TyrusWebSocket socket)
TODO.
|
void |
ProtocolHandler.setWebSocket(TyrusWebSocket webSocket)
Client side.
|
Modifier and Type | Method and Description |
---|---|
abstract void |
TyrusFrame.respond(TyrusWebSocket socket)
Execution part of frame processing.
|
void |
TextFrame.respond(TyrusWebSocket socket) |
void |
PongFrame.respond(TyrusWebSocket socket) |
void |
PingFrame.respond(TyrusWebSocket socket) |
void |
CloseFrame.respond(TyrusWebSocket socket) |
void |
BinaryFrame.respond(TyrusWebSocket socket) |
Copyright © 2012-2014, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.