Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package org.neolumin.simpleOrm;
 
 
 
    // Used by Jetty
    @SuppressWarnings("UnusedDeclaration")
    public static final Class TYPE = SessionIdManager.class;
    // Needed by Jetty
    @SuppressWarnings("UnusedDeclaration")
    }
    public SimpleOrmJettySessionIdManager(@SuppressWarnings("UnusedParameters"Server serverSimpleOrmJettySessionManager sessionManager) {
        this. = sessionManager;
    }
    @Override
    public boolean idInUse(String id) {
        return .loadSession(id) != null;
    }
    @Override
    public void addSession(HttpSession session) {
    }
    @Override
    public void removeSession(HttpSession session) {
    }
    @Override
    public void invalidateAll(String id) {
    }
    @Override
    public void renewSessionId(String oldClusterIdString oldNodeIdHttpServletRequest request) {
    }
    @Override
    public String getClusterId(String nodeId) {
        int dot = nodeId.lastIndexOf('.');
        return dot > 0 ? nodeId.substring(0, dot) : nodeId;
    }
    @Override
    public String getNodeId(String clusterIdHttpServletRequest request) {
        if (getWorkerName() != null) {
            return clusterId + '.' + getWorkerName();
        } else {
            return clusterId;
        }
    }
New to GrepCode? Check out our FAQ X