Package org.atmosphere.cpr.AtmosphereRequest

Examples of org.atmosphere.cpr.AtmosphereRequest.NoOpsRequest


    @Test
    public void sessionReplacementTest() {
        AtmosphereConfig config = new AtmosphereFramework().getAtmosphereConfig();
        config.setSupportSession(true);

        HttpServletRequest httpRequest = new NoOpsRequest();
        AtmosphereRequest request = new AtmosphereRequest.Builder().request(httpRequest).session(httpRequest.getSession(true)).build();
        AtmosphereResponse response = new AtmosphereResponse.Builder().build();
        AtmosphereResource r = config.resourcesFactory().create(config, request, response, mock(AsyncSupport.class));

        request.setAttribute(FrameworkConfig.ATMOSPHERE_RESOURCE, r);
View Full Code Here

TOP

Related Classes of org.atmosphere.cpr.AtmosphereRequest.NoOpsRequest

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.