public interface FilterConfig
Filter configuration in the web.xml looks like:
<filter filter-name='myservlet'
filter-class='test.MyServlet'>
<init-param param1='value1'/>
<init-param param2='value2'/>
</filter>
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getFilterName()
Returns the name of the filter.
|
java.lang.String |
getInitParameter(java.lang.String name)
Returns an initialization parameter.
|
java.util.Enumeration<java.lang.String> |
getInitParameterNames()
Returns an enumeration of the init-parameter names
|
ServletContext |
getServletContext()
Returns the ServletContext for the servlet or filter.
|
java.lang.String getFilterName()
java.lang.String getInitParameter(java.lang.String name)
name
- of the parameterjava.util.Enumeration<java.lang.String> getInitParameterNames()
ServletContext getServletContext()