public interface ServletConfig
<servlet servlet-name='my1'
servlet-class='test.MyServlet'>
<init-param param1='my1-1'/>
<init-param param2='my1-2'/>
</servlet>
<servlet servlet-name='my2'
servlet-class='test.MyServlet'>
<init-param param1='my2-1'/>
<init-param param2='my2-2'/>
</servlet>
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getInitParameter(java.lang.String name)
Returns an initialization parameter.
|
java.util.Enumeration<java.lang.String> |
getInitParameterNames()
Returns an enumeration of the init-parameter names
|
ServletContext |
getServletContext()
Returns the ServletContext for the servlet or filter.
|
java.lang.String |
getServletName()
Returns the servlet name for this configuration.
|
java.lang.String getServletName()
<servlet servlet-name='myservlet'
servlet-class='test.MyServlet'/>
java.lang.String getInitParameter(java.lang.String name)
<servlet servlet-name='myservlet'
servlet-class='test.MyServlet'>
<init-param param1='value1'/>
<init-param param2='value2'/>
</servlet>
name
- of the parameterjava.util.Enumeration<java.lang.String> getInitParameterNames()
ServletContext getServletContext()