Package javax.servlet

Interface ServletConfig

All Known Subinterfaces:
ServletEnvironment
All Known Implementing Classes:
DefaultServlet, DefaultServletEnvironment, GenericServlet, HttpServlet

public interface ServletConfig
The ServletConfig API.
Author:
Manfred Riem ([email protected])
  • Method Details

    • getInitParameter

      java.lang.String getInitParameter​(java.lang.String name)
      Get the init parameter.
      Parameters:
      name - the name.
      Returns:
      the value, or null if not found.
    • getInitParameterNames

      java.util.Enumeration<java.lang.String> getInitParameterNames()
      Get the init parameter names.
      Returns:
      the init parameter names.
    • getServletContext

      ServletContext getServletContext()
      Get the servlet context.
      Returns:
      the servlet context.
    • getServletName

      java.lang.String getServletName()
      Get the servlet name.
      Returns:
      the servlet name.