Examples of AtmosphereHandlerWrapper


Examples of org.atmosphere.cpr.AtmosphereFramework.AtmosphereHandlerWrapper

        req.setAttribute(FrameworkConfig.SUPPORT_SESSION, supportSession());

        int tracing = 0;

        AtmosphereHandlerWrapper handlerWrapper = map(req);
        if (config.getBroadcasterFactory() == null) {
            logger.error("Atmosphere is misconfigured and will not work. BroadcasterFactory is null");
            return Action.CANCELLED;
        }
        AtmosphereResourceImpl resource = configureWorkflow(null, handlerWrapper, req, res);
View Full Code Here

Examples of org.atmosphere.cpr.AtmosphereFramework.AtmosphereHandlerWrapper

     * @param req the {@link AtmosphereResponse}
     * @return the {@link AtmosphereHandler} mapped to the passed servlet-path.
     * @throws javax.servlet.ServletException
     */
    protected AtmosphereHandlerWrapper map(AtmosphereRequest req) throws ServletException {
        AtmosphereHandlerWrapper atmosphereHandlerWrapper = mapper.map(req, config.handlers());
        if (atmosphereHandlerWrapper == null) {
            logger.debug("No AtmosphereHandler maps request for {} with mapping {}", req.getRequestURI(), config.handlers());
            throw new AtmosphereMappingException("No AtmosphereHandler maps request for " + req.getRequestURI());
        }
        config.getBroadcasterFactory().add(atmosphereHandlerWrapper.broadcaster,
View Full Code Here

Examples of org.atmosphere.cpr.AtmosphereServlet.AtmosphereHandlerWrapper

            }
        }

        req.setAttribute(AtmosphereServlet.SUPPORT_SESSION, supportSession());

        AtmosphereHandlerWrapper handlerWrapper = map(req);
        AtmosphereResourceImpl resource = new AtmosphereResourceImpl(config,handlerWrapper.broadcaster, req, res, this, handlerWrapper.atmosphereHandler);
        handlerWrapper.broadcaster.getBroadcasterConfig().setAtmosphereConfig(config);

        req.setAttribute(AtmosphereServlet.ATMOSPHERE_RESOURCE, resource);
        req.setAttribute(AtmosphereServlet.ATMOSPHERE_HANDLER, handlerWrapper.atmosphereHandler);
View Full Code Here

Examples of org.atmosphere.cpr.AtmosphereServlet.AtmosphereHandlerWrapper

        String path = req.getServletPath();
        if (path == null || path.length() == 0) {
            path = "/";
        }

        AtmosphereHandlerWrapper atmosphereHandlerWrapper = config.handlers().get(path);
        if (atmosphereHandlerWrapper == null) {
            // Try the /*
            if (!path.endsWith("/")) {
                path += "/*";
            } else {
View Full Code Here

Examples of org.atmosphere.cpr.AtmosphereServlet.AtmosphereHandlerWrapper

            }
        }

        req.setAttribute(AtmosphereServlet.SUPPORT_SESSION, supportSession());

        AtmosphereHandlerWrapper g = map(req);
        AtmosphereResourceImpl re = new AtmosphereResourceImpl(config,
                g.broadcaster, req, res, this);
        req.setAttribute(AtmosphereServlet.ATMOSPHERE_RESOURCE, re);
        req.setAttribute(AtmosphereServlet.ATMOSPHERE_HANDLER, g.atmosphereHandler);
        g.atmosphereHandler.onRequest(re);
View Full Code Here

Examples of org.atmosphere.cpr.AtmosphereServlet.AtmosphereHandlerWrapper

        String path = req.getServletPath();
        if (path == null || path.equals("")) {
            path = "/";
        }

        AtmosphereHandlerWrapper atmosphereHandlerWrapper = config.handlers().get(path);
        if (atmosphereHandlerWrapper == null) {
            // Try the /*
            if (!path.endsWith("/")) {
                path += "/*";
            } 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.