コード例 #1
0
 /**
  * {@inheritDoc}
  *
  * <p>Overridden to make it visible to other classes in this package.
  */
 @Override
 protected void registerSession(Endpoint endpoint, WsSession wsSession) {
   super.registerSession(endpoint, wsSession);
   if (wsSession.isOpen()
       && wsSession.getUserPrincipal() != null
       && wsSession.getHttpSessionId() != null) {
     registerAuthenticatedSession(wsSession, wsSession.getHttpSessionId());
   }
 }
コード例 #2
0
 /**
  * {@inheritDoc}
  *
  * <p>Overridden to make it visible to other classes in this package.
  */
 @Override
 protected void unregisterSession(Endpoint endpoint, WsSession wsSession) {
   if (wsSession.getUserPrincipal() != null && wsSession.getHttpSessionId() != null) {
     unregisterAuthenticatedSession(wsSession, wsSession.getHttpSessionId());
   }
   super.unregisterSession(endpoint, wsSession);
 }