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.
-
getInitParameter(String)
- Gets an initialization parameter of the servlet.
-
getInitParameterNames()
- Returns an enumeration of strings representing the initialization
parameters for this servlet.
-
getServletContext()
- Returns the context for the servlet.
getServletContext
public abstract ServletContext getServletContext()
- Returns the context for the servlet.
getInitParameter
public abstract String getInitParameter(String name)
- Gets an initialization parameter of the servlet.
- Parameters:
- name - the parameter name
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