|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.cactus.server.FilterConfigWrapper
Wrapper around FilterConfig
which overrides the
getServletContext()
method to return our own wrapper around
ServletContext
.
ServletContext
Constructor Summary | |
FilterConfigWrapper(javax.servlet.FilterConfig theOriginalConfig)
|
Method Summary | |
java.lang.String |
getFilterName()
|
java.lang.String |
getInitParameter(java.lang.String theName)
|
java.util.Enumeration |
getInitParameterNames()
Return the union of the parameters defined in the Redirector web.xml file and the one set using the
setInitParameter() method. |
javax.servlet.ServletContext |
getServletContext()
|
void |
setFilterName(java.lang.String theFilterName)
Sets the filter name. |
void |
setInitParameter(java.lang.String theName,
java.lang.String theValue)
Sets a parameter as if it were set in the web.xml file. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public FilterConfigWrapper(javax.servlet.FilterConfig theOriginalConfig)
theOriginalConfig
- the original filter config objectMethod Detail |
public void setInitParameter(java.lang.String theName, java.lang.String theValue)
web.xml
file.
theName
- the parameter's nametheValue
- the parameter's valuepublic void setFilterName(java.lang.String theFilterName)
getFilterName()
method.
theFilterName
- the filter namepublic java.lang.String getFilterName()
getFilterName
in interface javax.servlet.FilterConfig
public javax.servlet.ServletContext getServletContext()
getServletContext
in interface javax.servlet.FilterConfig
public java.util.Enumeration getInitParameterNames()
web.xml
file and the one set using the
setInitParameter()
method. The parameters with the same
name (and same case) are only returned once.
getInitParameterNames
in interface javax.servlet.FilterConfig
public java.lang.String getInitParameter(java.lang.String theName)
getInitParameter
in interface javax.servlet.FilterConfig
theName
- the name of the parameter's value to return
setInitParameter()
method
and then in those set in web.xml
.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |