Examples of SessionManager


Examples of org.glassfish.web.deployment.runtime.SessionManager

        if (wmInfo.getDescriptor() != null &&
                wmInfo.getDescriptor().getSunDescriptor() != null) {
            SunWebAppImpl sunWebApp = (SunWebAppImpl) wmInfo.getDescriptor().getSunDescriptor();
            if (sunWebApp.getSessionConfig() != null &&
                    sunWebApp.getSessionConfig().getSessionManager() != null) {
                SessionManager sessionManager =
                    sunWebApp.getSessionConfig().getSessionManager();
                String persistenceType = sessionManager.getAttributeValue(
                    SessionManager.PERSISTENCE_TYPE);
                if (PersistenceType.COHERENCE_WEB.getType().equals(persistenceType)) {
                    ClassLoader cloader = wmInfo.getAppClassLoader();
                    try {
                        Class<?> cacheFactoryClass = cloader.loadClass(
View Full Code Here

Examples of org.huihoo.willow.session.SessionManager

    }
    if (willow_engine != null)
    {
      String username = (String) env.get(WorkflowClient.SECURITY_PRINCIPAL);
      String password = (String) env.get(WorkflowClient.SECURITY_CREDENTIALS);
      SessionManager manager = willow_engine.getSessionManager();
      RealmDatabase realmDatabase = willow_engine.getRealmDatabase();
      WorkflowParticipant participant = realmDatabase.authenticate(username, password);
      if (participant == null)
      {
        throw new WorkflowException("login workflow  engine unsuccessfully.username=" + username + ",password=" + password);
      }
      this.session = manager.createSession();
      this.session.setParticipant(participant);
    }
  }
View Full Code Here

Examples of org.jivesoftware.openfire.SessionManager

    public Object getResult() {
        return values;
    }

    public void run() {
        SessionManager manager = SessionManager.getInstance();
        values = new HashMap<String, Object>();
        values.put(NODE, CacheFactory.getClusterMemberID());
        // Collect number of authenticated users
        values.put(CLIENT, manager.getUserSessionsCount(true));
        // Collect number of incoming server connections
        values.put(INCOMING, manager.getIncomingServerSessionsCount(true));
        // Collect number of outgoing server connections
        values.put(OUTGOING, XMPPServer.getInstance().getRoutingTable().getServerSessionsCount());
        // Calculate free and used memory
        Runtime runtime = Runtime.getRuntime();
        double freeMemory = (double) runtime.freeMemory() / (1024 * 1024);
 
View Full Code Here

Examples of org.mortbay.jetty.SessionManager

            //as the jboss webservice client tests seem to use these invalid urls
            if (_log.isDebugEnabled())
                _log.debug("Allowing non-trailing '/' on context path");
            app.setAllowNullPathInfo(true);
                
            SessionManager manager = getDistributableSessionManagerPrototype();
            if (manager != null)
            {
                throw new UnsupportedOperationException("NOT IMPLEMENTED - please ask");
//                app.setDistributableSessionManager((Manager) manager.clone());
//                if (getForceDistributable())
View Full Code Here

Examples of org.mortbay.jetty.SessionManager

    {
        setRequestedId(request, dispatch);

        Request currentRequest = (request instanceof Request) ? (Request)request : HttpConnection.getCurrentConnection().getRequest();

        SessionManager requestSessionManager = currentRequest.getSessionManager();
        HttpSession requestSession = currentRequest.getSession(false);

        TerracottaSessionManager sessionManager = (TerracottaSessionManager)getSessionManager();
        Log.debug("SessionManager = {}", sessionManager);
View Full Code Here

Examples of org.mortbay.jetty.SessionManager

     */
    public void setSessionManager(SessionManager sessionManager)
    {
        if (isStarted())
            throw new IllegalStateException();
        SessionManager old_session_manager = _sessionManager;
       
        if (getServer()!=null)
            getServer().getContainer().update(this, old_session_manager, sessionManager, "sessionManager",true);
       
        if (sessionManager!=null)
            sessionManager.setSessionHandler(this);
       
        _sessionManager = sessionManager;
       
        if (old_session_manager!=null)
            old_session_manager.setSessionHandler(null);
    }
View Full Code Here

Examples of org.mortbay.jetty.SessionManager

            throws IOException, ServletException
    {
        setRequestedId(request, dispatch);
       
        Request base_request = (request instanceof Request) ? (Request)request:HttpConnection.getCurrentConnection().getRequest();
        SessionManager old_session_manager=null;
        HttpSession old_session=null;
       
        try
        {
            old_session_manager = base_request.getSessionManager();
View Full Code Here

Examples of org.mortbay.jetty.SessionManager

        if (dispatch!=REQUEST || requested_session_id!=null)
        {
            return;
        }
       
        SessionManager sessionManager = getSessionManager();
        boolean requested_session_id_from_cookie=false;
       
        // Look for session id cookie   
        if (_sessionManager.isUsingCookies())
        {
            Cookie[] cookies=request.getCookies();
            if (cookies!=null && cookies.length>0)
            {
                for (int i=0;i<cookies.length;i++)
                {
                    if (sessionManager.getSessionCookie().equalsIgnoreCase(cookies[i].getName()))
                    {
                        if (requested_session_id!=null)
                        {
                            // Multiple jsessionid cookies. Probably due to
                            // multiple paths and/or domains. Pick the first
                            // known session or the last defined cookie.
                            if (sessionManager.getHttpSession(requested_session_id)!=null)
                                break;
                        }

                        requested_session_id=cookies[i].getValue();
                        requested_session_id_from_cookie = true;
                        if(Log.isDebugEnabled())Log.debug("Got Session ID "+requested_session_id+" from cookie");
                    }
                }
            }
        }
       
        if (requested_session_id==null)
        {
            String uri = request.getRequestURI();
           
            int semi = uri.lastIndexOf(';');
            if (semi>=0)
            {  
                String path_params=uri.substring(semi+1);
               
                // check if there is a url encoded session param.
                String param=sessionManager.getSessionURL();
                if (param!=null && path_params!=null && path_params.startsWith(param))
                {
                    requested_session_id = path_params.substring(sessionManager.getSessionURL().length()+1);
                    if(Log.isDebugEnabled())Log.debug("Got Session ID "+requested_session_id+" from URL");
                }
            }
        }
       
View Full Code Here

Examples of org.mortbay.jetty.SessionManager

            //as the jboss webservice client tests seem to use these invalid urls
            if (_log.isDebugEnabled())
                _log.debug("Allowing non-trailing '/' on context path");
            app.setAllowNullPathInfo(true);
                
            SessionManager manager = getDistributableSessionManagerPrototype();
            if (manager != null)
            {
                throw new UnsupportedOperationException("NOT IMPLEMENTED - please ask");
//                app.setDistributableSessionManager((Manager) manager.clone());
//                if (getForceDistributable())
View Full Code Here

Examples of org.mortbay.jetty.servlet.SessionManager

                    if (SessionManager.__SessionCookie.equalsIgnoreCase(cookies[i].getName())) {
                        if (null != requestedSessionId) {
                            // Multiple jsessionid cookies. Probably due to
                            // multiple paths and/or domains. Pick the first
                            // known session or the last defined cookie.
                            SessionManager manager = servletHandler.getSessionManager();
                            if (manager!=null && manager.getHttpSession(requestedSessionId)!=null)
                                break;
                        }
                        requestedSessionId = cookies[i].getValue();
                    }
                }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.