All Packages  Class Hierarchy  This Package  Previous  Next  Index

Interface java.servlet.ServletConfig

public interface ServletConfig
This interface is used by the server to pass configuration information to a servlet when it is first loaded. It contains methods to get the context in which the servlet is running, as well as any initialization parameters that may have been being passed to the servlet at startup.


Method Index

 o getInitParameter(String)
Gets an initialization parameter of the servlet.
 o getInitParameterNames()
Returns an enumeration of strings representing the initialization parameters for this servlet.
 o getServletContext()
Returns the context for the servlet.

Methods

 o getServletContext
  public abstract ServletContext getServletContext()
Returns the context for the servlet.

 o getInitParameter
  public abstract String getInitParameter(String name)
Gets an initialization parameter of the servlet.

Parameters:
name - the parameter name
 o getInitParameterNames
  public abstract Enumeration getInitParameterNames()
Returns an enumeration of strings representing the initialization parameters for this servlet.


All Packages  Class Hierarchy  This Package  Previous  Next  Index