src/main/java/org/efaps/ui/wicket/connectionregistry/RegistryManager.java
public static IWebSocketConnection getConnection4Session(final String _sessionId)
    {
        IWebSocketConnection ret = null;
        if (RegistryManager.getCache().containsKey(_sessionId)) {
            final UserSession userSession = RegistryManager.getCache().get(_sessionId);
            if (userSession.getConnectionKey() != null) {
                final IWebSocketConnectionRegistry registry = WebSocketSettings.Holder.get(EFapsApplication.get())
                                .getConnectionRegistry();
                ret = registry.getConnection(EFapsApplication.get(),
                                userSession.getSessionId(), userSession.getConnectionKey());
            }
        }
        return ret;
    }
public static IWebSocketConnection getConnection4Session(final String _sessionId)
    {
        IWebSocketConnection ret = null;
        if (RegistryManager.getCache().containsKey(_sessionId)) {
            final UserSession userSession = RegistryManager.getCache().get(_sessionId);
            if (userSession.getConnectionKey() != null) {
                final IWebSocketConnectionRegistry registry = WebSocketSettings.Holder.get(EFapsApplication.get())
                                .getConnectionRegistry();
                ret = registry.getConnection(EFapsApplication.get(),
                                userSession.getSessionId(), userSession.getConnectionKey());
            }
        }
        return ret;
    }
public static IWebSocketConnection getConnection4Session ( final String _sessionId ) { IWebSocketConnection ret = null ; if ( RegistryManager . getCache ( ) . containsKey ( _sessionId ) ) { final UserSession userSession = RegistryManager . getCache ( ) . get ( _sessionId ) ; if ( userSession . getConnectionKey ( ) != null ) { final IWebSocketConnectionRegistry registry = WebSocketSettings . Holder . get ( EFapsApplication . get ( ) ) . getConnectionRegistry ( ) ; ret = registry . getConnection ( EFapsApplication . get ( ) , userSession . getSessionId ( ) , userSession . getConnectionKey ( ) ) ; } } return ret ; }
Gets the connection 4 session.

@param _sessionId the session id
@return the connection 4 session
Gets the connection 4 session .