FileDocCategorySizeDatePackage
FilterMaps.javaAPI DocGlassfish v2 API3690Fri May 04 22:32:08 BST 2007org.apache.catalina.deploy

FilterMaps

public class FilterMaps extends Object
Representation of a filter mapping for a web application, as represented in a <filter-mapping> element in the deployment descriptor. Each filter mapping must contain a filter name and any number of URL patterns and servlet names.

Fields Summary
private String[]
urlPatterns
private String[]
servletNames
private String
filterName
private FilterMap
fmap
Constructors Summary
Methods Summary
public voidaddServletName(java.lang.String servletName)

        String[] results = new String[servletNames.length + 1];
        System.arraycopy(servletNames, 0, results, 0, servletNames.length);
        results[servletNames.length] = servletName;
        servletNames = results;
    
public voidaddURLPattern(java.lang.String urlPattern)

        String[] results = new String[urlPatterns.length + 1];
        System.arraycopy(urlPatterns, 0, results, 0, urlPatterns.length);
        results[urlPatterns.length] = urlPattern;
        urlPatterns = results;
    
public intgetDispatcherMapping()

        return fmap.getDispatcherMapping();
    
public java.lang.StringgetFilterName()

        return filterName;
    
public java.lang.String[]getServletNames()

        return servletNames;
    
public java.lang.String[]getURLPatterns()

        return urlPatterns;
    
public voidsetDispatcher(java.lang.String dispatcherString)

        fmap.setDispatcher(dispatcherString);
    
public voidsetFilterName(java.lang.String filterName)


    // ------------------------------------------------------------ Properties
    
        
        this.filterName = filterName;