public class FilterMapping extends FilterConfigImpl
Modifier and Type | Class and Description |
---|---|
class |
FilterMapping.URLPattern |
FilterRegistration.Dynamic
Constructor and Description |
---|
FilterMapping()
Creates a new filter mapping object.
|
Modifier and Type | Method and Description |
---|---|
void |
addDispatcher(DispatcherType dispather) |
void |
addDispatcher(java.lang.String dispatcher)
Adds a dispatcher.
|
void |
addServletName(java.lang.String servletName)
Sets the servlet name
|
FilterMapping.URLPattern |
createUrlPattern()
Sets the url pattern
|
java.util.ArrayList<java.lang.String> |
getServletNames() |
java.lang.String |
getURLPattern()
Gets the url pattern
|
java.util.HashSet<java.lang.String> |
getURLPatterns() |
boolean |
isError()
True if the dispatcher is for ERROR.
|
boolean |
isForward()
True if the dispatcher is for FORWARD.
|
boolean |
isInclude()
True if the dispatcher is for INCLUDE.
|
boolean |
isMatch(java.lang.String servletPath,
java.lang.String pathInfo)
Returns true if the filter map matches the servlet path and path info.
|
boolean |
isRequest()
True if the dispatcher is for REQUEST.
|
void |
setURLRegexp(java.lang.String pattern)
Sets the url regexp
|
java.lang.String |
toString()
Returns a printable representation of the filter config object.
|
addMappingForServletNames, addMappingForUrlPatterns, getClassName, getDisplayName, getFilter, getFilterClass, getFilterClassName, getFilterManager, getFilterName, getInit, getInitParameter, getInitParameterNames, getInitParameters, getInitParamMap, getName, getServletContext, getServletNameMappings, getUrlPatternMappings, isAsyncSupported, setAsyncSupported, setDescription, setDisplayName, setFilter, setFilterClass, setFilterClass, setFilterManager, setFilterName, setIcon, setId, setInit, setInitParam, setInitParam, setInitParameter, setInitParameters, setServletContext, setWebApp
public FilterMapping.URLPattern createUrlPattern() throws ServletException
ServletException
public java.lang.String getURLPattern()
public java.util.HashSet<java.lang.String> getURLPatterns()
public void setURLRegexp(java.lang.String pattern) throws ServletException
ServletException
public void addServletName(java.lang.String servletName)
public java.util.ArrayList<java.lang.String> getServletNames()
public void addDispatcher(java.lang.String dispatcher) throws ConfigException
ConfigException
public void addDispatcher(DispatcherType dispather)
public boolean isRequest()
public boolean isInclude()
public boolean isForward()
public boolean isError()
public boolean isMatch(java.lang.String servletPath, java.lang.String pathInfo)
public java.lang.String toString()
toString
in class FilterConfigImpl