Class JeeServletConfig

  • All Implemented Interfaces:
    JeeConfig

    public class JeeServletConfig
    extends Object
    implements JeeConfig
    Implements JeeConfig with a ServletConfig.
    Since:
    2.0
    Version:
    $Id$
    • Field Detail

      • servlet

        protected javax.servlet.ServletConfig servlet
    • Constructor Detail

      • JeeServletConfig

        public JeeServletConfig​(javax.servlet.ServletConfig servlet)
    • Method Detail

      • getInitParameter

        public String getInitParameter​(String name)
        Returns an initialization parameter.
        Specified by:
        getInitParameter in interface JeeConfig
        Parameters:
        name - The name of the initialization parameter.
        Returns:
        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.
        Specified by:
        findInitParameter in interface JeeConfig
        Parameters:
        key - The name of the initialization parameter.
        Returns:
        The value of the initialization parameter.
      • getInitParameterNames

        public Enumeration getInitParameterNames()
        Returns all the parameter names.
        Specified by:
        getInitParameterNames in interface JeeConfig
        Returns:
        The enumeration containing the parameter names.
      • getName

        public String getName()
        Returns the name of the servlet (or filter) being used.
        Specified by:
        getName in interface JeeConfig
        Returns:
        The name of the configuration.
      • getServletContext

        public javax.servlet.ServletContext getServletContext()
        Returns the servlet context.
        Specified by:
        getServletContext in interface JeeConfig
        Returns:
        The servlet context.