Examples of FilterMapping


Examples of org.mortbay.jetty.servlet.FilterMapping

    FilterHolder holder = new FilterHolder();
    holder.setName(name);
    holder.setClassName(classname);
    holder.setInitParameters(parameters);
    FilterMapping fmap = new FilterMapping();
    fmap.setPathSpecs(urls);
    fmap.setDispatches(Handler.ALL);
    fmap.setFilterName(name);
    ServletHandler handler = ctx.getServletHandler();
    handler.addFilter(holder, fmap);
  }
View Full Code Here

Examples of org.mortbay.jetty.servlet.FilterMapping

   */
  protected void addFilterPathMapping(String pathSpec,
      Context webAppCtx) {
    ServletHandler handler = webAppCtx.getServletHandler();
    for(String name : filterNames) {
      FilterMapping fmap = new FilterMapping();
      fmap.setPathSpec(pathSpec);
      fmap.setFilterName(name);
      fmap.setDispatches(Handler.ALL);
      handler.addFilterMapping(fmap);
    }
  }
View Full Code Here

Examples of org.mortbay.jetty.servlet.FilterMapping

    FilterHolder holder = new FilterHolder();
    holder.setName(name);
    holder.setClassName(classname);
    holder.setInitParameters(parameters);
    FilterMapping fmap = new FilterMapping();
    fmap.setPathSpecs(urls);
    fmap.setDispatches(Handler.ALL);
    fmap.setFilterName(name);
    ServletHandler handler = ctx.getServletHandler();
    handler.addFilter(holder, fmap);
  }
View Full Code Here

Examples of org.mortbay.jetty.servlet.FilterMapping

   */
  protected void addFilterPathMapping(String pathSpec,
      Context webAppCtx) {
    ServletHandler handler = webAppCtx.getServletHandler();
    for(String name : filterNames) {
      FilterMapping fmap = new FilterMapping();
      fmap.setPathSpec(pathSpec);
      fmap.setFilterName(name);
      fmap.setDispatches(Handler.ALL);
      handler.addFilterMapping(fmap);
    }
  }
View Full Code Here

Examples of org.mortbay.jetty.servlet.FilterMapping

    webAppContext.addServlet(holder, pathSpec);
   
    if(requireAuth && UserGroupInformation.isSecurityEnabled()) {
       LOG.info("Adding Kerberos filter to " + name);
       ServletHandler handler = webAppContext.getServletHandler();
       FilterMapping fmap = new FilterMapping();
       fmap.setPathSpec(pathSpec);
       fmap.setFilterName("krb5Filter");
       fmap.setDispatches(Handler.ALL);
       handler.addFilterMapping(fmap);
    }
  }
View Full Code Here

Examples of org.netbeans.modules.j2ee.dd.api.web.FilterMapping

        protected FilterMapping addFilterMapping(WebApp webApp, String filterName,
                String mappingValue, FilterMappingType mappingType,
                FilterMappingDispatcher mappingDispatcher) throws IOException {

            FilterMapping mapping = (FilterMapping) createBean(webApp, "FilterMapping");
            mapping.setFilterName(filterName);
            switch(mappingType){
                case SERVLET_NAME:
                    mapping.setServletName(mappingValue);
                    break;
                case URL_PATTERN:
                    mapping.setUrlPattern(mappingValue);
                    break;
                default:
                    throw new IllegalArgumentException("Not supported filter " +
                            "mapping type");
            }

            try {
                mapping.setDispatcher(new String[] {mappingDispatcher.toString()});
            } catch (VersionNotSupportedException ve){
                log.warning(ve.getMessage());
            }

            webApp.addFilterMapping(mapping);
View Full Code Here

Examples of webapp.ifaces.FilterMapping

            Main.printPadding( level );
            System.out.println( "Filter mappings: " );
            System.out.println();
            for ( int i = 0; i < filterMappings.length; i++ )
            {
                final FilterMapping f = filterMappings[ i ];
                Main.printPadding( level + 1 );
                System.out.println( "Filter name: " + f.getFilterName() );
                Main.printPadding( level + 1 );
                if ( f.getServletName() != null )
                {
                    System.out.println( "Applies to servlet: " + f.getServletName() );
                }
                else
                {
                    System.out.println( "Applies to URL pattern: " + f.getURLPattern() );
                }
                final Dispatcher[] dispatchers = f.getDispatchers();
                if ( dispatchers.length != 0 )
                {
                    Main.printPadding( level + 1 );
                    System.out.print( "Dispatchers: " );
                    for ( int j = 0; j < dispatchers.length; j++ )
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.