📄 javax.servlet.servletconfig.html
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN"><!--NewPage--><html><head><!-- Generated by javadoc on Fri Apr 04 16:55:35 PST 2003 --><title> Interface javax.servlet.ServletConfig</title></head><body><a name="_top_"></a><pre><a href="packages.html">All Packages</a> <a href="tree.html">Class Hierarchy</a> <a href="Package-javax.servlet.html">This Package</a> <a href="javax.servlet.Servlet.html#_top_">Previous</a> <a href="javax.servlet.ServletContext.html#_top_">Next</a> <a href="AllNames.html">Index</a></pre><hr><h1> Interface javax.servlet.ServletConfig</h1><dl> <dt> public interface <b>ServletConfig</b></dl>A servlet configuration object used by a servlet container used to pass information to a servlet during initialization.<p><hr><a name="index"></a><h2> <img src="images/method-index.gif" width=207 height=38 alt="Method Index"></h2><dl> <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o "> <a href="#getInitParameter(javax.servlet.String)"><b>getInitParameter</b></a>(String) <dd> Returns a <code>String</code> containing the value of the named initialization parameter, or <code>null</code> if the parameter does not exist. <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o "> <a href="#getInitParameterNames()"><b>getInitParameterNames</b></a>() <dd> Returns the names of the servlet's initialization parameters as an <code>Enumeration</code> of <code>String</code> objects, or an empty <code>Enumeration</code> if the servlet has no initialization parameters. <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o "> <a href="#getServletContext()"><b>getServletContext</b></a>() <dd> Returns a reference to the { <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o "> <a href="#getServletName()"><b>getServletName</b></a>() <dd> Returns the name of this servlet instance.</dl><a name="methods"></a><h2> <img src="images/methods.gif" width=151 height=38 alt="Methods"></h2><a name="getServletName()"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a><a name="getServletName"><b>getServletName</b></a><pre> public abstract String getServletName()</pre><dl> <dd> Returns the name of this servlet instance. The name may be provided via server administration, assigned in the web application deployment descriptor, or for an unregistered (and thus unnamed) servlet instance it will be the servlet's class name.<p> <dd><dl> <dt> <b>Returns:</b> <dd> the name of the servlet instance </dl></dd></dl><a name="getServletContext()"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a><a name="getServletContext"><b>getServletContext</b></a><pre> public abstract <a href="javax.servlet.ServletContext.html#_top_">ServletContext</a> getServletContext()</pre><dl> <dd> Returns a reference to the {@link ServletContext} in which the caller is executing.<p> <dd><dl> <dt> <b>Returns:</b> <dd> a {@link ServletContext} object, used by the caller to interact with its servlet container <dt> <b>See Also:</b> <dd> <a href="javax.servlet.ServletContext.html#_top_">ServletContext</a> </dl></dd></dl><a name="getInitParameter(javax.servlet.String)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a><a name="getInitParameter"><b>getInitParameter</b></a><pre> public abstract String getInitParameter(String name)</pre><dl> <dd> Returns a <code>String</code> containing the value of the named initialization parameter, or <code>null</code> if the parameter does not exist.<p> <dd><dl> <dt> <b>Parameters:</b> <dd> name - a <code>String</code> specifying the name of the initialization parameter <dt> <b>Returns:</b> <dd> a <code>String</code> containing the value of the initialization parameter </dl></dd></dl><a name="getInitParameterNames()"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a><a name="getInitParameterNames"><b>getInitParameterNames</b></a><pre> public abstract Enumeration getInitParameterNames()</pre><dl> <dd> Returns the names of the servlet's initialization parameters as an <code>Enumeration</code> of <code>String</code> objects, or an empty <code>Enumeration</code> if the servlet has no initialization parameters.<p> <dd><dl> <dt> <b>Returns:</b> <dd> an <code>Enumeration</code> of <code>String</code> objects containing the names of the servlet's initialization parameters </dl></dd></dl><hr><pre><a href="packages.html">All Packages</a> <a href="tree.html">Class Hierarchy</a> <a href="Package-javax.servlet.html">This Package</a> <a href="javax.servlet.Servlet.html#_top_">Previous</a> <a href="javax.servlet.ServletContext.html#_top_">Next</a> <a href="AllNames.html">Index</a></pre></body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -