public class FilterConfigWrapper
extends java.lang.Object
implements javax.servlet.FilterConfig
FilterConfig
which overrides the
getServletContext()
method to return our own wrapper around
ServletContext
.ServletContext
Constructor and Description |
---|
FilterConfigWrapper(javax.servlet.FilterConfig theOriginalConfig) |
Modifier and Type | Method and Description |
---|---|
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. |
public FilterConfigWrapper(javax.servlet.FilterConfig theOriginalConfig)
theOriginalConfig
- the original filter config objectpublic 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 returnsetInitParameter()
method
and then in those set in web.xml
.Copyright © 2000-2004 Apache Software Foundation. All Rights Reserved.