Package org.apache.velocity.tools.view
Class JeeContextConfig
- java.lang.Object
-
- org.apache.velocity.tools.view.JeeContextConfig
-
-
Field Summary
Fields Modifier and Type Field Description protected javax.servlet.ServletContextcontext
-
Constructor Summary
Constructors Constructor Description JeeContextConfig(javax.servlet.ServletContext context)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringfindInitParameter(String key)Only checks theServletContext's init-params for the specified parameter.StringgetInitParameter(String name)Returns an initialization parameter.EnumerationgetInitParameterNames()Returns all the parameter names.StringgetName()Returns the name of the servlet (or filter) being used.javax.servlet.ServletContextgetServletContext()Returns the servlet context.
-
-
-
Method Detail
-
getInitParameter
public String getInitParameter(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 String findInitParameter(String key)
Only 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 Enumeration getInitParameterNames()
Returns all the parameter names.- Specified by:
getInitParameterNamesin interfaceJeeConfig- Returns:
- The enumeration containing the parameter names.
-
getName
public 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.
-
-