Package | Description |
---|---|
javax.websocket |
This package contains all the WebSocket APIs common to both the client
and server side.
|
org.glassfish.tyrus.client | |
org.glassfish.tyrus.core | |
org.glassfish.tyrus.core.cluster | |
org.glassfish.tyrus.core.frame | |
org.glassfish.tyrus.spi |
Modifier and Type | Method and Description |
---|---|
void |
Session.close(CloseReason closeReason)
Close the current conversation, giving a reason for the closure.
|
void |
Endpoint.onClose(Session session,
CloseReason closeReason)
This method is called immediately prior to the session with the remote
peer being closed.
|
Modifier and Type | Method and Description |
---|---|
boolean |
ClientManager.ReconnectHandler.onDisconnect(CloseReason closeReason)
Called after
OnClose annotated method (or Endpoint.onClose(javax.websocket.Session, javax.websocket.CloseReason)
is invoked. |
Modifier and Type | Method and Description |
---|---|
abstract CloseReason |
WebSocketException.getCloseReason()
Get close reason.
|
CloseReason |
Utf8DecodingException.getCloseReason() |
CloseReason |
ProtocolException.getCloseReason() |
CloseReason |
CloseReasons.getCloseReason()
Get close reason.
|
Modifier and Type | Method and Description |
---|---|
void |
TyrusWebSocket.close(CloseReason closeReason)
Closes this
TyrusWebSocket using the CloseReason . |
void |
TyrusSession.close(CloseReason closeReason)
Closes the underlying connection this session is based upon.
|
void |
TyrusRemoteEndpoint.close(CloseReason cr) |
void |
TyrusEndpointWrapper.OnCloseListener.onClose(CloseReason closeReason)
Invoked after
OnClose annotated method or Endpoint.onClose(javax.websocket.Session, javax.websocket.CloseReason) is invoked. |
void |
AnnotatedEndpoint.onClose(Session session,
CloseReason closeReason) |
void |
TyrusEndpointWrapper.onClose(TyrusWebSocket socket,
CloseReason closeReason)
Called by the provider when the web socket connection
to the given remote endpoint has just closed.
|
Modifier and Type | Method and Description |
---|---|
void |
ClusterSession.close(CloseReason closeReason) |
abstract Future<Void> |
ClusterContext.close(String sessionId,
CloseReason closeReason)
Close remote session with custom
CloseReason . |
void |
SessionEventListener.onClose(CloseReason closeReason)
Invoked on session close event.
|
Modifier and Type | Method and Description |
---|---|
CloseReason |
CloseFrame.getCloseReason()
Get close reason.
|
Constructor and Description |
---|
CloseFrame(CloseReason closeReason)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
Connection.close(CloseReason reason)
Notifies tyrus that underlying transport is closing the connection.
|
void |
Connection.CloseListener.close(CloseReason reason)
Tyrus notifies that logical connection is closed.
|
Copyright © 2012-2014, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.