Package org.mortbay.jetty.servlet

Examples of org.mortbay.jetty.servlet.WebApplicationHandler


        }
        this.webClassLoader = new JettyClassLoader(urls, webAppRootURL, classLoader, contextPriorityClassLoader);
        setClassLoader(this.webClassLoader);

        setHosts(virtualHosts);
        handler = new WebApplicationHandler();
        addHandler(handler);

        userTransaction.setUp(transactionContextManager, trackedConnectionAssociator);

        //stuff from spec dd
View Full Code Here


   * Define a filter for a context and set up default url mappings.
   */
  protected void defineFilter(WebApplicationContext ctx, String name,
      String classname, Map<String, String> parameters, String[] urls) {

    WebApplicationHandler handler = ctx.getWebApplicationHandler();
    FilterHolder holder = handler.defineFilter(name, classname);
    if (parameters != null) {
      for(Map.Entry<String, String> e : parameters.entrySet()) {
        holder.setInitParameter(e.getKey(), e.getValue());
      }
    }

    for (String url : urls) {
      handler.addFilterPathMapping(url, name, Dispatcher.__ALL);
    }
  }
View Full Code Here

  /**
   * Add the path spec to the filter path mapping.
   * @param pathSpec The path spec
   */
  protected void addFilterPathMapping(String pathSpec) {
    WebApplicationHandler handler = webAppContext.getWebApplicationHandler();
    for(String name : filterNames) {
      handler.addFilterPathMapping(pathSpec, name, Dispatcher.__ALL);
    }
  }
View Full Code Here

        this.webClassLoader = new JettyClassLoader(urls, webAppRootURL, classLoader, contextPriorityClassLoader);
        setClassLoader(this.webClassLoader);

        setHosts(virtualHosts);
       
        handler = new WebApplicationHandler();
        addHandler(handler);

        userTransaction.setUp(transactionContextManager, trackedConnectionAssociator);

        //stuff from spec dd
View Full Code Here

            urls[i] = classPathEntry.toURL();
        }
        this.webClassLoader = new JettyClassLoader(urls, webAppRootURL, classLoader, contextPriorityClassLoader);
        setClassLoader(this.webClassLoader);

        handler = new WebApplicationHandler();
        addHandler(handler);

        userTransaction.setUp(transactionContextManager, trackedConnectionAssociator);

        //stuff from spec dd
View Full Code Here

TOP

Related Classes of org.mortbay.jetty.servlet.WebApplicationHandler

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.