- All Known Subinterfaces:
ServletEnvironment
- All Known Implementing Classes:
DefaultServlet
,DefaultServletEnvironment
,GenericServlet
,HttpServlet
public interface ServletConfig
The ServletConfig API.
- Author:
- Manfred Riem ([email protected])
-
Method Summary
Modifier and Type Method Description java.lang.String
getInitParameter(java.lang.String name)
Get the init parameter.java.util.Enumeration<java.lang.String>
getInitParameterNames()
Get the init parameter names.ServletContext
getServletContext()
Get the servlet context.java.lang.String
getServletName()
Get the servlet name.
-
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.
-