Examples of XFormsSession


Examples of org.chiba.web.session.XFormsSession

    public void wipe() {
        if (LOGGER.isDebugEnabled()) {
            LOGGER.debug("checking for expired sessions");
        }

        XFormsSession session;
        Iterator allSessions = this.xformsSessions.values().iterator();
        while (allSessions.hasNext()) {
            session = (XFormsSession) allSessions.next();

            if (isExpired(session)) {
                allSessions.remove();
                System.gc();
                if (LOGGER.isDebugEnabled()) {
                    LOGGER.debug("Removed expired XFormsSession: " + session.getKey() + " - lastUsed: " + new Date(session.getLastUseTime()));
                    LOGGER.debug("Session count now: " + xformsSessions.size());
                }
            }
        }
    }
View Full Code Here

Examples of org.chiba.web.session.XFormsSession

        assertTrue(session instanceof XFormsSession);
        assertNotNull(((XFormsSession)session).getKey());
    }

    public void testAddXFormsSession() throws Exception{
        XFormsSession session = manager.createXFormsSession();
        manager.addXFormsSession(session);
        assertEquals(manager.getSessionCount(),1);
    }
View Full Code Here

Examples of org.chiba.web.session.XFormsSession

        manager.addXFormsSession(session);
        assertEquals(manager.getSessionCount(),1);
    }

    public void testGetXFormsSession() throws Exception{
        XFormsSession session = manager.createXFormsSession();
        manager.addXFormsSession(session);
        XFormsSession sessionFromManager = manager.getXFormsSession(session.getKey());
        assertEquals(session,sessionFromManager);
    }
View Full Code Here

Examples of org.chiba.web.session.XFormsSession

        manager.setTimeout(1);
        manager.setInterval(2000);
        manager.start();
        manager.start();

        XFormsSession session = manager.createXFormsSession();
        session.getLastUseTime();
        manager.addXFormsSession(session);

        Thread.sleep(5000);

        assertEquals(0,manager.getSessionCount());
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.