javax.servlet
Interface FilterConfig

All Known Implementing Classes:
FilterConfigImpl, FilterMapping

public interface FilterConfig

Configuration for a filter. The container will fill the FilterConfig with the init parameters before passing it to the filter.

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>
 

Since:
Servlet 2.3

Method Summary
 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.
 

Method Detail

getFilterName

java.lang.String getFilterName()
Returns the name of the filter.


getInitParameter

java.lang.String getInitParameter(java.lang.String name)
Returns an initialization parameter. Initialization parameters are defined in the filter configuration (in resin.conf).

Parameters:
name - of the parameter
Returns:
the init parameter value

getInitParameterNames

java.util.Enumeration<java.lang.String> getInitParameterNames()
Returns an enumeration of the init-parameter names


getServletContext

ServletContext getServletContext()
Returns the ServletContext for the servlet or filter.