Class ServletConfigImpl

    • Method Detail

      • getServletName

        public String getServletName()
        Description copied from interface: ServletConfig
        Returns the name of this servlet instance. The name may be provided via server administration, assigned in the web application deployment descriptor, or for an unregistered (and thus unnamed) servlet instance it will be the servlet's class name.
        Specified by:
        getServletName in interface ServletConfig
        Returns:
        the name of the servlet instance
      • getInitParameter

        public String getInitParameter​(String name)
        Description copied from interface: ServletConfig
        Gets the value of the initialization parameter with the given name.
        Specified by:
        getInitParameter in interface ServletConfig
        Parameters:
        name - the name of the initialization parameter whose value to get
        Returns:
        a String containing the value of the initialization parameter, or null if the initialization parameter does not exist
      • getInitParameterNames

        public Enumeration<String> getInitParameterNames()
        Description copied from interface: ServletConfig
        Returns the names of the servlet's initialization parameters as an Enumeration of String objects, or an empty Enumeration if the servlet has no initialization parameters.
        Specified by:
        getInitParameterNames in interface ServletConfig
        Returns:
        an Enumeration of String objects containing the names of the servlet's initialization parameters