类 JeeContextConfig

java.lang.Object
org.apache.velocity.tools.view.JeeContextConfig
所有已实现的接口:
JeeConfig

public class JeeContextConfig extends Object implements JeeConfig
Implements JeeConfig with only a ServletContext.
从以下版本开始:
2.0
版本:
$Id$
  • 字段详细资料

    • context

      protected ServletContext context
  • 构造器详细资料

    • JeeContextConfig

      public JeeContextConfig(ServletContext context)
  • 方法详细资料

    • getInitParameter

      public String getInitParameter(String name)
      Returns an initialization parameter.
      指定者:
      getInitParameter 在接口中 JeeConfig
      参数:
      name - The name of the initialization parameter.
      返回:
      The value of the parameter.
    • findInitParameter

      public String findInitParameter(String key)
      Only checks the ServletContext's init-params for the specified parameter.
      指定者:
      findInitParameter 在接口中 JeeConfig
      参数:
      key - The name of the initialization parameter.
      返回:
      The value of the initialization parameter.
    • getInitParameterNames

      public Enumeration getInitParameterNames()
      Returns all the parameter names.
      指定者:
      getInitParameterNames 在接口中 JeeConfig
      返回:
      The enumeration containing the parameter names.
    • getName

      public String getName()
      Returns the name of the servlet (or filter) being used.
      指定者:
      getName 在接口中 JeeConfig
      返回:
      The name of the configuration.
    • getServletContext

      public ServletContext getServletContext()
      Returns the servlet context.
      指定者:
      getServletContext 在接口中 JeeConfig
      返回:
      The servlet context.