Package org.apache.velocity.tools.view
Class JeeContextConfig
java.lang.Object
org.apache.velocity.tools.view.JeeContextConfig
- All Implemented Interfaces:
JeeConfig
Implements
JeeConfig
with only a ServletContext
.- Since:
- 2.0
- Version:
- $Id$
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfindInitParameter
(String key) Only checks theServletContext
's init-params for the specified parameter.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
-
context
protected ServletContext context
-
-
Constructor Details
-
JeeContextConfig
public JeeContextConfig(ServletContext context)
-
-
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
Only 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.
-