All Packages Class Hierarchy This Package Previous Next Index
Interface javax.servlet.ServletConfig
- 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.
- Version:
- Servlet API 2.0
-
getInitParameter(String)
- Get the value of this name's initparameter
-
getInitParameterNames()
- Get all InitParameterNames
-
getServletContext()
- Get the context of this ServletConfig
getInitParameter
public abstract String getInitParameter(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
public abstract 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
getServletContext
public abstract ServletContext getServletContext()
- Get the context of this ServletConfig
- Returns:
- The context of the servlet whose Config this is
All Packages Class Hierarchy This Package Previous Next Index