Class FilterMap
- java.lang.Object
-
- org.apache.tomcat.util.descriptor.web.XmlEncodingBase
-
- org.apache.tomcat.util.descriptor.web.FilterMap
-
- All Implemented Interfaces:
Serializable
public class FilterMap extends XmlEncodingBase implements Serializable
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 plus either a URL pattern or a servlet name.- Author:
- Craig R. McClanahan
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description FilterMap()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddServletName(String servletName)voidaddURLPattern(String urlPattern)voidaddURLPatternDecoded(String urlPattern)intgetDispatcherMapping()String[]getDispatcherNames()StringgetFilterName()booleangetMatchAllServletNames()booleangetMatchAllUrlPatterns()String[]getServletNames()String[]getURLPatterns()voidsetDispatcher(String dispatcherString)This method will be used to set the current state of the FilterMap representing the state of when filters should be applied.voidsetFilterName(String filterName)StringtoString()Render a String representation of this object.-
Methods inherited from class org.apache.tomcat.util.descriptor.web.XmlEncodingBase
getCharset, setCharset
-
-
-
-
Field Detail
-
ERROR
public static final int ERROR
The name of this filter to be executed when this mapping matches a particular request.- See Also:
- Constant Field Values
-
FORWARD
public static final int FORWARD
- See Also:
- Constant Field Values
-
INCLUDE
public static final int INCLUDE
- See Also:
- Constant Field Values
-
REQUEST
public static final int REQUEST
- See Also:
- Constant Field Values
-
ASYNC
public static final int ASYNC
- See Also:
- Constant Field Values
-
-
Method Detail
-
getFilterName
public String getFilterName()
-
setFilterName
public void setFilterName(String filterName)
-
getServletNames
public String[] getServletNames()
-
addServletName
public void addServletName(String servletName)
-
getMatchAllUrlPatterns
public boolean getMatchAllUrlPatterns()
-
getMatchAllServletNames
public boolean getMatchAllServletNames()
-
getURLPatterns
public String[] getURLPatterns()
-
addURLPattern
public void addURLPattern(String urlPattern)
-
addURLPatternDecoded
public void addURLPatternDecoded(String urlPattern)
-
setDispatcher
public void setDispatcher(String dispatcherString)
This method will be used to set the current state of the FilterMap representing the state of when filters should be applied.- Parameters:
dispatcherString- the dispatcher type which should match this filter
-
getDispatcherMapping
public int getDispatcherMapping()
-
getDispatcherNames
public String[] getDispatcherNames()
-
-