org.mortbay.jetty.servlet
Class FilterMapping
java.lang.Object
org.mortbay.jetty.servlet.FilterMapping
public class FilterMapping
- extends Object
_dispatches
private int _dispatches
_filterName
private String _filterName
_holder
private transient FilterHolder _holder
_pathSpecs
private String[] _pathSpecs
_servletNames
private String[] _servletNames
FilterMapping
public FilterMapping()
appliesTo
boolean appliesTo(String path,
int type)
- Check if this filter applies to a path.
- Parameters:
path
- The path to check or null to just check typetype
- The type of request: __REQUEST,__FORWARD,__INCLUDE or __ERROR.
- Returns:
- True if this filter applies
appliesTo
boolean appliesTo(int type)
- Check if this filter applies to a path.
- Parameters:
path
- The path to check or null to just check typetype
- The type of request: __REQUEST,__FORWARD,__INCLUDE or __ERROR.
- Returns:
- True if this filter applies
getDispatches
public int getDispatches()
- Returns:
- Returns the dispatches.
getFilterName
public String getFilterName()
- Returns:
- Returns the filterName.
getFilterHolder
FilterHolder getFilterHolder()
- Returns:
- Returns the holder.
getPathSpecs
public String[] getPathSpecs()
- Returns:
- Returns the pathSpec.
setDispatches
public void setDispatches(int dispatches)
- Parameters:
dispatches
- The dispatches to set.
setFilterName
public void setFilterName(String filterName)
- Parameters:
filterName
- The filterName to set.
setFilterHolder
void setFilterHolder(FilterHolder holder)
- Parameters:
holder
- The holder to set.
setPathSpecs
public void setPathSpecs(String[] pathSpecs)
- Parameters:
pathSpec
- The pathSpecs to set.
setPathSpec
public void setPathSpec(String pathSpec)
- Parameters:
pathSpec
- The pathSpec to set.
getServletNames
public String[] getServletNames()
- Returns:
- Returns the servletName.
setServletNames
public void setServletNames(String[] servletNames)
- Parameters:
servletName
- The servletName to set.
setServletName
public void setServletName(String servletName)
- Parameters:
servletName
- The servletName to set.
toString
public String toString()
- Overrides:
toString
in class Object