Package org.atmosphere.util

Examples of org.atmosphere.util.FakeHttpSession


                        sessions.remove(uuid[0]);
                    } else {
                        session = sessions.get(uuid[0]);

                        if (session == null) {
                            session = new FakeHttpSession("-1", null, System.currentTimeMillis(), -1);
                        }
                    }
                }
            }
        }
View Full Code Here


        }

        @Override
        public HttpSession getSession(boolean create) {
            if (create && fake == null) {
                fake = new FakeHttpSession("", null, System.currentTimeMillis(), -1) {
                    @Override
                    public void invalidate() {
                        fake = null;
                        super.invalidate();
                    }
View Full Code Here

        assertNull(request.getSession(false));
        assertNotNull(request.getSession());
        assertNotNull(request.getSession(true));
        assertNotNull(request.getSession());

        request = new AtmosphereRequest.Builder().session(new FakeHttpSession("-1", null, System.currentTimeMillis(), -1)).build();
        assertNotNull(request.getSession());
        assertNotNull(request.getSession(true));
    }
View Full Code Here

        assertNull(r.session(false));
        assertNotNull(r.session());
        assertNotNull(r.session(true));
        assertNotNull(r.session());

        request = new AtmosphereRequest.Builder().session(new FakeHttpSession("-1", null, System.currentTimeMillis(), -1)).build();
        response = new AtmosphereResponse.Builder().build();
        r = config.resourcesFactory().create(new AtmosphereFramework().getAtmosphereConfig(),
                request,
                response,
                mock(AsyncSupport.class));
View Full Code Here

        HttpSession session = null;
        if (copySession) {
            session = request.getSession(true);
            if (session != null) {
                session = new FakeHttpSession(session);
            }
        }

        b.servletPath(request.getServletPath())
                .pathInfo(request.getPathInfo())
View Full Code Here

TOP

Related Classes of org.atmosphere.util.FakeHttpSession

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.