Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  /*
   * JBoss, Home of Professional Open Source.
   * Copyright 2012 Red Hat, Inc., and individual contributors
   * as indicated by the @author tags.
   *
   * Licensed under the Apache License, Version 2.0 (the "License");
   * you may not use this file except in compliance with the License.
   * You may obtain a copy of the License at
   *
  *     http://www.apache.org/licenses/LICENSE-2.0
  *
  * Unless required by applicable law or agreed to in writing, software
  * distributed under the License is distributed on an "AS IS" BASIS,
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
 
 package org.apache.catalina.core;
 
 
 import java.util.Map;
 import java.util.Set;
 
Facade for AppalicationFilterConfig.

Author(s):
Remy Maucherat
Version:
$Revision: 992 $ $Date: 2009-04-08 01:09:34 +0200 (Wed, 08 Apr 2009) $
 
 
 
 
     public static class Dynamic extends ApplicationFilterConfigFacade
     implements FilterRegistration.Dynamic {
 
         public Dynamic(ApplicationFilterConfig config) {
             super(config);
         }
 
     }
 
 
     // ----------------------------------------------------------- Constructors
 
 
         this. = config;
     }
 
 
     // ----------------------------------------------------- Instance Variables
 

    
The Context with which we are associated.
 
     private ApplicationFilterConfig config = null;
 
 
     // --------------------------------------------------- FilterConfig Methods
 

    
Return the name of the filter we are configuring.
 
     public String getFilterName() {
         return .getFilterName();
     }


    
Return a String containing the value of the named initialization parameter, or null if the parameter does not exist.

Parameters:
name Name of the requested initialization parameter
 
     public String getInitParameter(String name) {
         return .getInitParameter(name);
     }


    
Return an Enumeration of the names of the initialization parameters for this Filter.
 
     public Enumeration<StringgetInitParameterNames() {
        return .getInitParameterNames();
    }


    
Return the ServletContext of our associated web application.
    public ServletContext getServletContext() {
        return .getServletContext();
    }
    public void addMappingForServletNames(
            EnumSet<DispatcherTypedispatcherTypesboolean isMatchAfter,
            String... servletNames) {
        .addMappingForServletNames(dispatcherTypesisMatchAfterservletNames);
    }
    public void addMappingForUrlPatterns(
            EnumSet<DispatcherTypedispatcherTypesboolean isMatchAfter,
            String... urlPatterns) {
        .addMappingForUrlPatterns(dispatcherTypesisMatchAfterurlPatterns);
    }
    public boolean setInitParameter(String nameString value) {
        return .setInitParameter(namevalue);
    }
    public Set<StringsetInitParameters(Map<StringStringinitParameters) {
        return .setInitParameters(initParameters);
    }
    public void setAsyncSupported(boolean isAsyncSupported) {
        .setAsyncSupported(isAsyncSupported);
    }
    public void setDescription(String description) {
        .setDescription(description);
    }
        return .getServletNameMappings();
    }
        return .getUrlPatternMappings();
    }
    public String getClassName() {
        return .getFilterDef().getFilterClass();
    }
    public Map<StringStringgetInitParameters() {
        return Collections.unmodifiableMap(.getFilterDef().getParameterMap());
    }
    public String getName() {
        return .getFilterName();
    }
New to GrepCode? Check out our FAQ X