Package org.apache.velocity.tools.view
Class JeeFilterConfig
- java.lang.Object
-
- org.apache.velocity.tools.view.JeeFilterConfig
-
-
Field Summary
Fields Modifier and Type Field Description protected javax.servlet.FilterConfigfilter
-
Constructor Summary
Constructors Constructor Description JeeFilterConfig(javax.servlet.FilterConfig filter)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringfindInitParameter(java.lang.String key)Looks for the specified init-param in the servlet/filter config (i.e.java.lang.StringgetInitParameter(java.lang.String name)Returns an initialization parameter.java.util.EnumerationgetInitParameterNames()Returns all the parameter names.java.lang.StringgetName()Returns the name of the servlet (or filter) being used.javax.servlet.ServletContextgetServletContext()Returns the servlet context.
-
-
-
Method Detail
-
getInitParameter
public java.lang.String getInitParameter(java.lang.String name)
Returns an initialization parameter.- Specified by:
getInitParameterin interfaceJeeConfig- 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. callsJeeConfig.getInitParameter(java.lang.String)). If no such init-param is found there, it checks theServletContext's init-params for the specified parameter.- Specified by:
findInitParameterin interfaceJeeConfig- 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:
getInitParameterNamesin interfaceJeeConfig- Returns:
- The enumeration containing the parameter names.
-
getName
public java.lang.String getName()
Returns the name of the servlet (or filter) being used.
-
getServletContext
public javax.servlet.ServletContext getServletContext()
Returns the servlet context.- Specified by:
getServletContextin interfaceJeeConfig- Returns:
- The servlet context.
-
-