Examples of RequestContextListener


Examples of jodd.servlet.RequestContextListener

    HttpServletRequest request = createRequest(session);
    ServletRequestEvent requestEvent = createServletRequestEvent(request);
    HttpSessionBindingEvent event = createHttpSessionBindingEvent(session);

    // jodd
    RequestContextListener requestContextListener = new RequestContextListener();

    // start session, init request
    requestContextListener.requestInitialized(requestEvent);

    // petite
    PetiteContainer pc = new PetiteContainer();
    pc.registerPetiteBean(Ses.class, null, null, null, false);
View Full Code Here

Examples of jodd.servlet.RequestContextListener

    HttpServletRequest request = createRequest(session);
    ServletRequestEvent requestEvent = createServletRequestEvent(request);
    HttpSessionBindingEvent event = createHttpSessionBindingEvent(session);

    // jodd
    RequestContextListener requestContextListener = new RequestContextListener();

    // start session, init request
    requestContextListener.requestInitialized(requestEvent);

    // petite
    PetiteContainer pc = new PetiteContainer();
    pc.registerPetiteBean(Ses.class, null, null, null, false);
View Full Code Here

Examples of org.springframework.web.context.request.RequestContextListener

    root.getSessionHandler().getSessionManager().setMaxInactiveInterval(5000);

    Map<String, String> param = new HashMap<String, String>();
    param.put("contextConfigLocation", "classpath:context.xml");
    root.setInitParams(param);
    root.addEventListener(new RequestContextListener());
    root.addEventListener(new ContextLoaderListener());
    root.addServlet(org.apache.cxf.transport.servlet.CXFServlet.class, "/services/*");

    server.start();

 
View Full Code Here

Examples of org.springframework.web.context.request.RequestContextListener

        Context context = new Context(server, getBasePath(), Context.SESSIONS);
        Map<String, String> params = new HashMap<String, String>();
        params.put(ContextLoaderListener.CONFIG_LOCATION_PARAM, getSpringContextLocation());
        context.setInitParams(params);
        context.addEventListener(new ContextLoaderListener());
        context.addEventListener(new RequestContextListener());
        context.addServlet(sh, getServletMapping());
        server.start();
        LOG.info("Jetty server running.");
        applicationContext = WebApplicationContextUtils.getWebApplicationContext(context.getServletContext());
  }
View Full Code Here

Examples of org.springframework.web.context.request.RequestContextListener

        Context context = new Context(server, getBasePath(), Context.SESSIONS);
        Map<String, String> params = new HashMap<String, String>();
        params.put(ContextLoaderListener.CONFIG_LOCATION_PARAM, getSpringContextLocation());
        context.setInitParams(params);
        context.addEventListener(new ContextLoaderListener());
        context.addEventListener(new RequestContextListener());
        context.addServlet(sh, getServletMapping());
        server.start();
        LOG.info("Jetty server running.");
        this.applicationContext = WebApplicationContextUtils.getWebApplicationContext(context.getServletContext());
  }
View Full Code Here

Examples of org.springframework.web.context.request.RequestContextListener

        Context context = new Context(server, getBasePath(), Context.SESSIONS);
        Map<String, String> params = new HashMap<String, String>();
        params.put(ContextLoaderListener.CONFIG_LOCATION_PARAM, getSpringContextLocation());
        context.setInitParams(params);
        context.addEventListener(new ContextLoaderListener());
        context.addEventListener(new RequestContextListener());
        context.addServlet(sh, getServletMapping());
        server.start();
        LOG.info("Jetty server running.");
        applicationContext = WebApplicationContextUtils.getWebApplicationContext(context.getServletContext());
    }
View Full Code Here

Examples of org.springframework.web.context.request.RequestContextListener

        Context context = new Context(server, getBasePath(), Context.SESSIONS);
        Map<String, String> params = new HashMap<String, String>();
        params.put(ContextLoaderListener.CONFIG_LOCATION_PARAM, getSpringContextLocation());
        context.setInitParams(params);
        context.addEventListener(new ContextLoaderListener());
        context.addEventListener(new RequestContextListener());
        context.addServlet(sh, getServletMapping());
        server.start();
        LOG.info("Jetty server running.");
        this.applicationContext = WebApplicationContextUtils.getWebApplicationContext(context.getServletContext());
    }
View Full Code Here

Examples of org.springframework.web.context.request.RequestContextListener

        globals = new WebGlobals();
        subFactory.getAutowireCapableBeanFactory().autowireBeanProperties(globals,
                AutowireCapableBeanFactory.AUTOWIRE_BY_TYPE, false);

        // listener
        listener = new RequestContextListener();
    }
View Full Code Here

Examples of org.springframework.web.context.request.RequestContextListener

  private void registerListeners(ServletContext servletContext,
      AnnotationConfigWebApplicationContext root) {

    servletContext.addListener(new LoggingInitializerListener());
    servletContext.addListener(new ContextLoaderListener(root));
    servletContext.addListener(new RequestContextListener());
  }
View Full Code Here

Examples of org.springframework.web.context.request.RequestContextListener

    }

    public static class SpringRequestContextListenerRegistryEntry implements ServletRequestListenerRegistryEntry {
        @Override
        public ServletRequestListener getListenerInstance() {
            return new RequestContextListener();
        }
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.