Class JeeServletConfig
java.lang.Object
org.apache.velocity.tools.view.JeeServletConfig
- All Implemented Interfaces:
JeeConfig
-
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.javax.servlet.ServletContextReturns the servlet context.
-
Field Details
-
servlet
protected javax.servlet.ServletConfig servlet
-
-
Constructor Details
-
JeeServletConfig
public JeeServletConfig(javax.servlet.ServletConfig servlet)
-
-
Method Details
-
getInitParameter
Returns an initialization parameter.- Specified by:
getInitParameterin 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(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
Returns all the parameter names.- Specified by:
getInitParameterNamesin interfaceJeeConfig- Returns:
- The enumeration containing the parameter names.
-
getName
-
getServletContext
public javax.servlet.ServletContext getServletContext()Returns the servlet context.- Specified by:
getServletContextin interfaceJeeConfig- Returns:
- The servlet context.
-