Package net.sf.cindy

Examples of net.sf.cindy.SessionFilter


        public Session getSession() {
            return AbstractSession.this;
        }

        protected SessionFilter nextFilter() {
            SessionFilter filter = null;
            if (dispatchFilter != null) {
                filter = dispatchFilter;
                dispatchFilter = null;
            } else if ((reversed && --cursor >= 0)
                    || (!reversed && ++cursor < appFilters.length)) {
View Full Code Here


    private void caughtException(Throwable throwable) {
        getSession().getSessionFilterChain(false).exceptionCaught(throwable);
    }

    private SessionFilter next() {
        SessionFilter filter = nextFilter();
        return filter == null ? NULL_FILTER : filter;
    }
View Full Code Here

    }

    public void testFilter() {
        assertEquals(0, session.getSessionFilters().length);

        SessionFilter first = new SessionFilterAdapter();
        session.addSessionFilter(first);
        assertEquals(1, session.getSessionFilters().length);
        assertEquals(first, session.getSessionFilters()[0]);

        SessionFilter second = new SessionFilterAdapter();
        session.addSessionFilter(second);
        assertEquals(2, session.getSessionFilters().length);
        assertEquals(first, session.getSessionFilters()[0]);
        assertEquals(second, session.getSessionFilters()[1]);

        SessionFilter third = new SessionFilterAdapter();
        session.addSessionFilter(1, third);
        assertEquals(3, session.getSessionFilters().length);
        assertEquals(first, session.getSessionFilters()[0]);
        assertEquals(third, session.getSessionFilters()[1]);
        assertEquals(second, session.getSessionFilters()[2]);
View Full Code Here

TOP

Related Classes of net.sf.cindy.SessionFilter

Copyright © 2018 www.massapicom. 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.