javax.servlet
Interface FilterConfig


public interface FilterConfig

Configuration for a filter. The container will fill the FilterConfig with the init parameters before passing it to the 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 getInitParameterNames()
          Returns an enumeration of the init-parameter names
 ServletContext getServletContext()
          Returns the ServletContext for the servlet or filter.
 

Method Detail

getFilterName

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

getInitParameter

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

 <filter filter-name='myservlet'
          filter-class='test.MyServlet'>
   <init-param param1='value1'/>
   <init-param param2='value2'/>
 </servlet>
 
Parameters:
name - of the parameter
Returns:
the init parameter value

getInitParameterNames

public java.util.Enumeration getInitParameterNames()
Returns an enumeration of the init-parameter names

getServletContext

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