org.apache.velocity.tools.view
Class JeeFilterConfig

java.lang.Object
  extended by org.apache.velocity.tools.view.JeeFilterConfig
All Implemented Interfaces:
JeeConfig

public class JeeFilterConfig
extends java.lang.Object
implements JeeConfig

Implements JeeConfig with a FilterConfig.

Since:
2.0
Version:
$Id$

Field Summary
protected  javax.servlet.FilterConfig filter
           
 
Constructor Summary
JeeFilterConfig(javax.servlet.FilterConfig filter)
           
 
Method Summary
 java.lang.String findInitParameter(java.lang.String key)
          Looks for the specified init-param in the servlet/filter config (i.e.
 java.lang.String getInitParameter(java.lang.String name)
          Returns an initialization parameter.
 java.util.Enumeration getInitParameterNames()
          Returns all the parameter names.
 java.lang.String getName()
          Returns the name of the servlet (or filter) being used.
 javax.servlet.ServletContext getServletContext()
          Returns the servlet context.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

filter

protected javax.servlet.FilterConfig filter
Constructor Detail

JeeFilterConfig

public JeeFilterConfig(javax.servlet.FilterConfig filter)
Method Detail

getInitParameter

public java.lang.String getInitParameter(java.lang.String name)
Returns an initialization parameter.

Specified by:
getInitParameter in interface JeeConfig
Parameters:
name - The name of the initialization parameter.
Returns:
The value of the parameter.

findInitParameter

public java.lang.String findInitParameter(java.lang.String key)
Looks for the specified init-param in the servlet/filter config (i.e. calls JeeConfig.getInitParameter(java.lang.String)). If no such init-param is found there, it checks the ServletContext's init-params for the specified parameter.

Specified by:
findInitParameter in interface JeeConfig
Parameters:
key - The name of the initialization parameter.
Returns:
The value of the initialization parameter.

getInitParameterNames

public java.util.Enumeration getInitParameterNames()
Returns all the parameter names.

Specified by:
getInitParameterNames in interface JeeConfig
Returns:
The enumeration containing the parameter names.

getName

public java.lang.String getName()
Returns the name of the servlet (or filter) being used.

Specified by:
getName in interface JeeConfig
Returns:
The name of the configuration.

getServletContext

public javax.servlet.ServletContext getServletContext()
Returns the servlet context.

Specified by:
getServletContext in interface JeeConfig
Returns:
The servlet context.


Copyright (c) 2003-2007 Apache Software Foundation