类 JeeContextConfig
java.lang.Object
org.apache.velocity.tools.view.JeeContextConfig
- 所有已实现的接口:
JeeConfig
Implements
JeeConfig with only a ServletContext.- 从以下版本开始:
- 2.0
- 版本:
- $Id$
-
字段概要
字段 -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明findInitParameter(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.jakarta.servlet.ServletContextReturns the servlet context.
-
字段详细资料
-
context
protected jakarta.servlet.ServletContext context
-
-
构造器详细资料
-
JeeContextConfig
public JeeContextConfig(jakarta.servlet.ServletContext context)
-
-
方法详细资料
-
getInitParameter
Returns an initialization parameter.- 指定者:
getInitParameter在接口中JeeConfig- 参数:
name- The name of the initialization parameter.- 返回:
- The value of the parameter.
-
findInitParameter
Only checks theServletContext's init-params for the specified parameter.- 指定者:
findInitParameter在接口中JeeConfig- 参数:
key- The name of the initialization parameter.- 返回:
- The value of the initialization parameter.
-
getInitParameterNames
Returns all the parameter names.- 指定者:
getInitParameterNames在接口中JeeConfig- 返回:
- The enumeration containing the parameter names.
-
getName
Returns the name of the servlet (or filter) being used. -
getServletContext
public jakarta.servlet.ServletContext getServletContext()Returns the servlet context.- 指定者:
getServletContext在接口中JeeConfig- 返回:
- The servlet context.
-