|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--java.util.AbstractMap
|
+--org.mortbay.jetty.servlet.Holder
|
+--org.mortbay.jetty.servlet.FilterHolder
| Field Summary | |
static int |
__ERROR
|
static int |
__FORWARD
|
static int |
__INCLUDE
|
static int |
__REQUEST
|
| Constructor Summary | |
FilterHolder()
Constructor for Serialization. |
|
FilterHolder(HttpHandler httpHandler,
java.lang.String name,
java.lang.String className)
|
|
| Method Summary | |
void |
addAppliesTo(int type)
Add a type that this filter applies to. |
void |
addAppliesTo(java.lang.String type)
Add a type that this filter applies to. |
void |
addPathSpec(java.lang.String pathSpec)
Add A path spec that this filter applies to. |
void |
addServlet(java.lang.String servlet)
Add A servlet that this filter applies to. |
java.lang.String |
appliedPathSpec(java.lang.String path)
|
boolean |
appliesTo(int type)
Check if this filter applies. |
boolean |
appliesTo(java.lang.String path,
int type)
Check if this filter applies to a path. |
Filter |
getFilter()
|
java.lang.String[] |
getPaths()
|
java.lang.String[] |
getServlets()
|
boolean |
isMappedToPath()
|
void |
start()
Start the LifeCycle. |
void |
stop()
Stop the LifeCycle. |
java.lang.String |
toString()
|
static int |
type(java.lang.String type)
|
| Methods inherited from class org.mortbay.jetty.servlet.Holder |
entrySet, get, getClassName, getDisplayName, getHttpHandler, getInitParameter, getInitParameterNames, getInitParameters, getName, isStarted, newInstance, put, setDisplayName, setInitParameter |
| Methods inherited from class java.util.AbstractMap |
clear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, putAll, remove, size, values |
| Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static final int __REQUEST
public static final int __FORWARD
public static final int __INCLUDE
public static final int __ERROR
| Constructor Detail |
public FilterHolder()
public FilterHolder(HttpHandler httpHandler,
java.lang.String name,
java.lang.String className)
| Method Detail |
public static int type(java.lang.String type)
public void addAppliesTo(int type)
type - Of __REQUEST, __FORWARD, __INCLUDE or __ERRORpublic void addAppliesTo(java.lang.String type)
type - "REQUEST", "FORWARD", "INCLUDE" or "ERROR"public void addServlet(java.lang.String servlet)
servlet - public void addPathSpec(java.lang.String pathSpec)
pathSpec - public boolean isMappedToPath()
public boolean appliesTo(int type)
type - The type of request: __REQUEST,__FORWARD,__INCLUDE or __ERROR.
public boolean appliesTo(java.lang.String path,
int type)
path - The path to check.type - The type of request: __REQUEST,__FORWARD,__INCLUDE or __ERROR.
public java.lang.String appliedPathSpec(java.lang.String path)
public void start()
throws java.lang.Exception
LifeCycle
start in interface LifeCyclestart in class Holderjava.lang.Exception - An arbitrary exception may be thrown.public void stop()
LifeCycle
stop in interface LifeCyclestop in class Holderpublic Filter getFilter()
public java.lang.String[] getPaths()
public java.lang.String[] getServlets()
public java.lang.String toString()
toString in class Holder
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||