Examples of WebApplicationContext


Examples of com.astamuse.asta4d.web.WebApplicationContext

        if (templateContext == null) {
            templateContext = applicationContext.getBean(WebApplicationContext.class);
            Context.setCurrentThreadContext(templateContext);
        }
        templateContext.init();
        WebApplicationContext webContext = (WebApplicationContext) templateContext;
        webContext.setRequest(request);
        webContext.setResponse(response);
        return true;
    }
View Full Code Here

Examples of com.sun.jersey.server.impl.application.WebApplicationContext

        ContainerResponse response = new ContainerResponse(
            app, // web application requested
            request, // container request
            new ResponseWriterDbl()
        );
        UriRuleContext context = new WebApplicationContext(app, request, response);
        return context;
    }
View Full Code Here

Examples of com.vaadin.terminal.gwt.server.WebApplicationContext

        return m_statefulTargetRepository.preregister(attributes, tags);
    }

    private void addCrossPlatformAddShortcut(Button button, int keycode, String description) {
        // ACE-427 - NPE when using getMainWindow() if no authentication is used...
        WebApplicationContext context = (WebApplicationContext) getContext();
        ShortcutHelper.addCrossPlatformShortcut(context.getBrowser(), button, description, keycode, ModifierKey.SHIFT);
    }
View Full Code Here

Examples of org.browsermob.proxy.jetty.jetty.servlet.WebApplicationContext

     */
    protected WebApplicationContext newWebApplicationContext(
       String webApp
    )
    {
        return new WebApplicationContext(webApp);
    }
View Full Code Here

Examples of org.fto.jthink.j2ee.web.WEBApplicationContext

   *
   * @param req 标准HTTP请求
   */
  public ResourceManager(HttpServletRequest req){
    this();
    WEBApplicationContext webContext = new WEBApplicationContext(req.getSession().getServletContext());

    /* 设置资源容器, WEBApplicationContext上下文 */
    setResourceContainer(WEBApplicationContext.class.getName(), webContext);

    /* 设置资源容器, HttpSession用户会话 */
 
View Full Code Here

Examples of org.jboss.seam.contexts.WebApplicationContext

      loadResourceProviders();
   }

   protected void loadResourceProviders()
   {
      Context tempApplicationContext = new WebApplicationContext(context);

      Init init = (Init) tempApplicationContext.get(Init.class);
      for (String name : init.getResourceProviders())
      {
         AbstractResource provider = (AbstractResource) tempApplicationContext.get(name);
         if (provider != null)
         {
            provider.setServletContext(context);
            providers.put(provider.getResourcePath(), provider);
         }
View Full Code Here

Examples of org.mortbay.jetty.servlet.WebApplicationContext

            if (properties.getProperty("xmppServer.defaultSecretKey") != null) {
                manager.setDefaultSecretKey(properties.getProperty("xmppServer.defaultSecretKey"));
            }

            // Add web-app
            WebApplicationContext webAppContext = jetty.addWebApplication("/",
                    homeDir + File.separator + "webapp");
            webAppContext.setWelcomeFiles(new String[]{"index.jsp"});

            // Start the http server
            jetty.start();

            if (!plainStarted && !secureStarted) {
View Full Code Here

Examples of org.mortbay.jetty.servlet.WebApplicationContext

   * @param servletClass The servlet class
   */
  public <T extends HttpServlet>
                    void addServlet(String name, String pathSpec,
                                    Class<T> servletClass) {
    WebApplicationContext context = webAppContext;
    try {
      if (name == null) {
        context.addServlet(pathSpec, servletClass.getName());
      } else {
        context.addServlet(name, pathSpec, servletClass.getName());
      }
    } catch (ClassNotFoundException ex) {
      throw makeRuntimeException("Problem instantiating class", ex);
    } catch (InstantiationException ex) {
      throw makeRuntimeException("Problem instantiating class", ex);
View Full Code Here

Examples of org.mortbay.jetty.servlet.WebApplicationContext

   */
  public <T extends HttpServlet>
   void addServlet(String name, String pathSpec,
                   Class<T> servletClass) {
  
    WebApplicationContext context = webAppContext;
    try {
      if (name == null) {
        context.addServlet(pathSpec, servletClass.getName());
      } else {
        context.addServlet(name, pathSpec, servletClass.getName());
      }
    } catch (ClassNotFoundException ex) {
      throw makeRuntimeException("Problem instantiating class", ex);
    } catch (InstantiationException ex) {
      throw makeRuntimeException("Problem instantiating class", ex);
View Full Code Here

Examples of org.mortbay.jetty.servlet.WebApplicationContext

      listener.setPort(port);
      listener.setHost(listen);
     
      webServer.addListener(listener);
     
      WebApplicationContext wac = new WebApplicationContext();
      wac.setContextPath("/hwi");
 
      String hwiWAR = conf.getVar(HiveConf.ConfVars.HIVEHWIWARFILE);
      if (! new File (hwiWAR).exists() ){
        l4j.fatal("HWI WAR file not found at "+ hwiWAR );
      }
     
      wac.setWAR(hwiWAR);
     
      /*The command line args may be used by multiple components. Rather by setting
       * these as a system property we avoid having to specifically pass them
       */
      StringBuffer sb = new StringBuffer();
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.