public abstract static class TyrusEndpointWrapper.SessionListener extends Object
EndpointEventListener
?Modifier and Type | Class and Description |
---|---|
static class |
TyrusEndpointWrapper.SessionListener.OnOpenResult
Result of
onOpen(TyrusSession) . |
Constructor and Description |
---|
SessionListener() |
Modifier and Type | Method and Description |
---|---|
void |
onClose(TyrusSession session,
javax.websocket.CloseReason closeReason)
Invoked after
OnClose annotated method
or Endpoint.onClose(javax.websocket.Session, javax.websocket.CloseReason) execution. |
TyrusEndpointWrapper.SessionListener.OnOpenResult |
onOpen(TyrusSession session)
Invoked before
OnOpen annotated method
or Endpoint.onOpen(javax.websocket.Session, javax.websocket.EndpointConfig) is invoked. |
public TyrusEndpointWrapper.SessionListener.OnOpenResult onOpen(TyrusSession session)
OnOpen
annotated method
or Endpoint.onOpen(javax.websocket.Session, javax.websocket.EndpointConfig)
is invoked.
Default implementation always returns TyrusEndpointWrapper.SessionListener.OnOpenResult.SESSION_ALLOWED
.session
- session to be opened.TyrusEndpointWrapper.SessionListener.OnOpenResult.SESSION_ALLOWED
if session can be opened or reason why not.public void onClose(TyrusSession session, javax.websocket.CloseReason closeReason)
OnClose
annotated method
or Endpoint.onClose(javax.websocket.Session, javax.websocket.CloseReason)
execution.session
- closed session.closeReason
- close reason.Copyright © 2012-2015, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.