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 java.lang.StringfindInitParameter(java.lang.String key)Only checks theServletContext's init-params for the specified parameter.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)
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 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.
-
-