org.mortbay.jetty.servlet
Class FilterMapping

java.lang.Object
  extended by org.mortbay.jetty.servlet.FilterMapping

public class FilterMapping
extends Object


Field Summary
private  int _dispatches
           
private  String _filterName
           
private  FilterHolder _holder
           
private  String[] _pathSpecs
           
private  String[] _servletNames
           
 
Constructor Summary
FilterMapping()
           
 
Method Summary
(package private)  boolean appliesTo(int type)
          Check if this filter applies to a path.
(package private)  boolean appliesTo(String path, int type)
          Check if this filter applies to a path.
 int getDispatches()
           
(package private)  FilterHolder getFilterHolder()
           
 String getFilterName()
           
 String[] getPathSpecs()
           
 String[] getServletNames()
           
 void setDispatches(int dispatches)
           
(package private)  void setFilterHolder(FilterHolder holder)
           
 void setFilterName(String filterName)
           
 void setPathSpec(String pathSpec)
           
 void setPathSpecs(String[] pathSpecs)
           
 void setServletName(String servletName)
           
 void setServletNames(String[] servletNames)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

_dispatches

private int _dispatches

_filterName

private String _filterName

_holder

private transient FilterHolder _holder

_pathSpecs

private String[] _pathSpecs

_servletNames

private String[] _servletNames
Constructor Detail

FilterMapping

public FilterMapping()
Method Detail

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 type
type - 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 type
type - 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