JavaScript is disabled on your browser.
  • Summary:
  • Nested |
  • Field |
  • Constr |
  • Method
  • Detail:
  • Field |
  • Constr |
  • Method
javax.servlet

Interface ServletConfig

  • All Known Implementing Classes:
    GenericServlet, HttpServlet


    public interface ServletConfig
    Whenever a server wants to pass initialization data to a servlet, it creates a class which implements this interface.
    The server then adds {String,String} pairs to the class, and the servlet can read these using this interface.
    Since:
    1.0
    • Method Summary

      Methods
      Modifier and Type Method and Description
      java.lang.String getInitParameter (java.lang.String name)
      Get the value of this name's initparameter
      java.util.Enumeration getInitParameterNames ()
      Get all InitParameterNames
      ServletContext getServletContext ()
      Get the context of this ServletConfig
      java.lang.String getServletName ()
      Returns the name of the servlet definition, as specified in the deployment descriptor.
    • Method Detail

      • getServletName

        java.lang.String getServletName()
        Returns the name of the servlet definition, as specified in the deployment descriptor.
      • getServletContext

        ServletContext getServletContext()
        Get the context of this ServletConfig
        Returns:
        The context of the servlet whose Config this is
      • getInitParameter

        java.lang.String getInitParameter(java.lang.String name)
        Get the value of this name's initparameter
        Parameters:
        name - the name of the Parameter whose value we want
        Returns:
        The value of this name's initparameter or null if it doesn't exist
      • getInitParameterNames

        java.util.Enumeration getInitParameterNames()
        Get all InitParameterNames
        Returns:
        An enumeration consisting of all the init parameter names or an empty empty enumeration when there are no init parameters
  • Summary:
  • Nested |
  • Field |
  • Constr |
  • Method
  • Detail:
  • Field |
  • Constr |
  • Method

AltStyle によって変換されたページ (->オリジナル) /