Package org.apache.velocity.tools.view
Class JeeServletConfig
java.lang.Object
org.apache.velocity.tools.view.JeeServletConfig
- All Implemented Interfaces:
JeeConfig
Implements
JeeConfig
with a ServletConfig
.- Since:
- 2.0
- Version:
- $Id$
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfindInitParameter
(String key) Looks for the specified init-param in the servlet/filter config (i.e.getInitParameter
(String name) Returns an initialization parameter.Returns all the parameter names.getName()
Returns the name of the servlet (or filter) being used.ServletContext
Returns the servlet context.
-
Field Details
-
servlet
protected ServletConfig servlet
-
-
Constructor Details
-
JeeServletConfig
public JeeServletConfig(ServletConfig servlet)
-
-
Method Details
-
getInitParameter
Returns an initialization parameter.- Specified by:
getInitParameter
in interfaceJeeConfig
- Parameters:
name
- The name of the initialization parameter.- Returns:
- The value of the parameter.
-
findInitParameter
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:
findInitParameter
in interfaceJeeConfig
- Parameters:
key
- The name of the initialization parameter.- Returns:
- The value of the initialization parameter.
-
getInitParameterNames
Returns all the parameter names.- Specified by:
getInitParameterNames
in interfaceJeeConfig
- Returns:
- The enumeration containing the parameter names.
-
getName
Returns the name of the servlet (or filter) being used. -
getServletContext
public ServletContext getServletContext()Returns the servlet context.- Specified by:
getServletContext
in interfaceJeeConfig
- Returns:
- The servlet context.
-