类 JeeServletConfig

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

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

    • servlet

      protected ServletConfig servlet
  • 构造器详细资料

    • JeeServletConfig

      public JeeServletConfig(ServletConfig servlet)
  • 方法详细资料

    • 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)
      Looks for the specified init-param in the servlet/filter config (i.e. calls JeeConfig.getInitParameter(java.lang.String)). If no such init-param is found there, it 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.