Examples of findSession()


Examples of org.apache.catalina.Manager.findSession()

        Manager manager = context.getManager();
        if (manager == null)
            return (false);
        Session session = null;
        try {
            session = manager.findSession(requestedSessionId);
        } catch (IOException e) {
            session = null;
        }
        if ((session != null) && session.isValid())
            return (true);
View Full Code Here

Examples of org.apache.catalina.Manager.findSession()

        Manager manager = context.getManager();
        if (manager == null)
            return (null);      // Sessions are not supported
        if (requestedSessionId != null) {
            try {
                session = manager.findSession(requestedSessionId);
            } catch (IOException e) {
                session = null;
            }
            if ((session != null) && !session.isValid())
                session = null;
View Full Code Here

Examples of org.apache.catalina.Manager.findSession()

        Manager manager = context.getManager();
        if (manager == null)
            return (false);
        Session session = null;
        try {
            session = manager.findSession(id);
        } catch (IOException e) {
            session = null;
        }
        if ((session != null) && session.isValidInternal())
            return (true);
View Full Code Here

Examples of org.apache.catalina.Manager.findSession()

                // If there is a session, get the tomcat session for the principal
                Manager manager = container.getManager();
                if (manager != null && hsession != null) {
                    try {
                        session = manager.findSession(hsession.getId());
                    } catch (IOException ignore) {
                    }
                }

                if (caller == null || !(caller instanceof JBossGenericPrincipal)) {
View Full Code Here

Examples of org.apache.catalina.Manager.findSession()

    private Session createAndUseSession(DistributableSessionManager<?> manager, String id, boolean canCreate, boolean access)
            throws Exception {
        // Shift to Manager interface when we simulate Tomcat
        Manager mgr = manager;
        Session sess = mgr.findSession(id);
        assertNull("session does not exist", sess);
        try {
            sess = mgr.createSession(id, new Random());
            if (!canCreate)
                fail("Could not create session" + id);
View Full Code Here

Examples of org.apache.catalina.Manager.findSession()

            Manager manager = container.getManager();
            if (manager != null && hsession != null)
            {
               try
               {
                  session = manager.findSession(hsession.getId());
               }
               catch (IOException ignore)
               {
               }
            }
View Full Code Here

Examples of org.apache.catalina.Manager.findSession()

            Manager manager = container.getManager();
            if (manager != null && hsession != null)
            {
               try
               {
                  session = manager.findSession(hsession.getId());
               }
               catch (IOException ignore)
               {
               }
            }
View Full Code Here

Examples of org.apache.catalina.Manager.findSession()

    private Session createAndUseSession(DistributableSessionManager<?> manager, String id, boolean canCreate, boolean access)
            throws Exception {
       
        // Shift to Manager interface when we simulate Tomcat
        Manager mgr = manager;
        Session sess = mgr.findSession(id);
        assertNull("session does not exist", sess);
        try {
            sess = mgr.createSession(id, new Random());
            if (!canCreate)
                fail("Could not create session" + id);
View Full Code Here

Examples of org.apache.catalina.Manager.findSession()

    }

    private void useSession(DistributableSessionManager<?> manager, String id) throws Exception {
        // Shift to Manager interface when we simulate Tomcat
        Manager mgr = manager;
        Session sess = mgr.findSession(id);
        assertNotNull("session exists", sess);

        sess.access();
        sess.getSession().setAttribute("test", "test");
View Full Code Here

Examples of org.apache.catalina.cluster.ClusterManager.findSession()

            while (i.hasNext()) {
                String key = (String) i.next();
                ClusterManager mgr = (ClusterManager) managers.get(key);
                if (mgr != null) {
                    try {
                        session = mgr.findSession(sessionId);
                    } catch (IOException io) {
                        log.error("Session doesn't exist:" + io);
                    }
                    return session;
                } else {
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.