Class FilterMap
java.lang.Object
org.apache.tomcat.util.descriptor.web.XmlEncodingBase
org.apache.tomcat.util.descriptor.web.FilterMap
- All Implemented Interfaces:
- 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:
- 
Field SummaryFields
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidaddServletName(String servletName) voidaddURLPattern(String urlPattern) voidaddURLPatternDecoded(String urlPattern) intString[]booleanbooleanString[]String[]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) toString()Render a String representation of this object.Methods inherited from class org.apache.tomcat.util.descriptor.web.XmlEncodingBasegetCharset, setCharset
- 
Field Details- 
ERRORpublic static final int ERRORThe name of this filter to be executed when this mapping matches a particular request.- See Also:
 
- 
FORWARDpublic static final int FORWARD- See Also:
 
- 
INCLUDEpublic static final int INCLUDE- See Also:
 
- 
REQUESTpublic static final int REQUEST- See Also:
 
- 
ASYNCpublic static final int ASYNC- See Also:
 
 
- 
- 
Constructor Details- 
FilterMappublic FilterMap()
 
- 
- 
Method Details- 
getFilterName
- 
setFilterName
- 
getServletNames
- 
addServletName
- 
getMatchAllUrlPatternspublic boolean getMatchAllUrlPatterns()
- 
getMatchAllServletNamespublic boolean getMatchAllServletNames()
- 
getURLPatterns
- 
addURLPattern
- 
addURLPatternDecoded
- 
setDispatcherThis 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
 
- 
getDispatcherMappingpublic int getDispatcherMapping()
- 
getDispatcherNames
- 
toStringRender a String representation of this object.
 
-