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.
The server then adds {String,String} pairs to the class, and the servlet can read these using this interface.
- Since:
- Servlet API 1.0
- Version:
- Servlet API 2.2
-
Method Summary
Modifier and TypeMethodDescriptiongetInitParameter(String name) Get the value of this name's initparameterGet all InitParameterNamesGet the context of this ServletConfigXXX
-
Method Details
-
getInitParameter
-
getInitParameterNames
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
- Since:
- Servlet API 1.0
-
getServletContext
ServletContext getServletContext()Get the context of this ServletConfig- Returns:
- The context of the servlet whose Config this is
- Since:
- Servlet API 1.0
-
getServletName
String getServletName()XXX
-