⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 turbineconfig.html

📁 turbine教程
💻 HTML
📖 第 1 页 / 共 3 页
字号:
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<B>Deprecated.</B>&nbsp;<I></I>&nbsp;</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/apache/turbine/util/TurbineConfig.html#init()">init</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<B>Deprecated.</B>&nbsp;<I>Use initialize() instead.</I></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/apache/turbine/util/TurbineConfig.html#init(org.apache.turbine.util.RunData)">init</A></B>(<A HREF="../../../../org/apache/turbine/util/RunData.html">RunData</A>&nbsp;data)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Initialization requiring a HTTP <code>GET</code> request.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/apache/turbine/util/TurbineConfig.html#initialize()">initialize</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Causes this class to initialize itself which in turn initializes all of the Turbine Services that need to be initialized.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/apache/turbine/util/TurbineConfig.html#log(java.lang.Exception, java.lang.String)">log</A></B>(java.lang.Exception&nbsp;e,    java.lang.String&nbsp;m)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<B>Deprecated.</B>&nbsp;<I></I>&nbsp;</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/apache/turbine/util/TurbineConfig.html#log(java.lang.String)">log</A></B>(java.lang.String&nbsp;m)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Logs a message.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/apache/turbine/util/TurbineConfig.html#log(java.lang.String, java.lang.Throwable)">log</A></B>(java.lang.String&nbsp;m,    java.lang.Throwable&nbsp;t)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Logs an error message.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/apache/turbine/util/TurbineConfig.html#removeAttribute(java.lang.String)">removeAttribute</A></B>(java.lang.String&nbsp;s)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Not implemented.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/apache/turbine/util/TurbineConfig.html#setAttribute(java.lang.String, java.lang.Object)">setAttribute</A></B>(java.lang.String&nbsp;s,             java.lang.Object&nbsp;o)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Not implemented.</TD></TR></TABLE>&nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Methods inherited from class java.lang.Object</B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD></TR></TABLE>&nbsp;<P><!-- ============ FIELD DETAIL =========== --><!-- ========= CONSTRUCTOR DETAIL ======== --><A NAME="constructor_detail"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Constructor Detail</B></FONT></TD></TR></TABLE><A NAME="TurbineConfig(java.lang.String, java.util.Map, java.util.Map)"><!-- --></A><H3>TurbineConfig</H3><PRE>public <B>TurbineConfig</B>(java.lang.String&nbsp;path,                     java.util.Map&nbsp;attributes,                     java.util.Map&nbsp;initParams)</PRE><DL><DD>Constructs a new TurbineConfig. This is the general form of the constructor. You can provide a path to search for files, and a name-value map of init parameters. <p> For the list of recognized init parameters, see <A HREF="../../../../org/apache/turbine/Turbine.html"><CODE>Turbine</CODE></A> class.<DD><DL><DT><B>Parameters:</B><DD><CODE>path</CODE> - The web application root (i.e. the path for file lookup).<DD><CODE>attributes</CODE> - Servlet container (or emulator) attributes.<DD><CODE>initParams</CODE> - initialization parameters.</DL></DD></DL><HR><A NAME="TurbineConfig(java.lang.String, java.util.Map)"><!-- --></A><H3>TurbineConfig</H3><PRE>public <B>TurbineConfig</B>(java.lang.String&nbsp;path,                     java.util.Map&nbsp;initParams)</PRE><DL><DD><DL><DT><B>See Also: </B><DD><A HREF="../../../../org/apache/turbine/util/TurbineConfig.html#TurbineConfig(java.lang.String, java.util.Map, java.util.Map)"><CODE>TurbineConfig(String path, Map attributes, Map initParams)</CODE></A></DL></DD></DL><HR><A NAME="TurbineConfig(java.lang.String, java.lang.String)"><!-- --></A><H3>TurbineConfig</H3><PRE>public <B>TurbineConfig</B>(java.lang.String&nbsp;path,                     java.lang.String&nbsp;properties)</PRE><DL><DD>Constructs a TurbineConfig. This is a specialized constructor that allows to configure Turbine easiliy in the common setups.<DD><DL><DT><B>Parameters:</B><DD><CODE>path</CODE> - The web application root (i.e. the path for file lookup).<DD><CODE>properties</CODE> - the relative path to TurbineResources.properties file</DL></DD></DL><!-- ============ METHOD DETAIL ========== --><A NAME="method_detail"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Method Detail</B></FONT></TD></TR></TABLE><A NAME="init()"><!-- --></A><H3>init</H3><PRE>public void <B>init</B>()</PRE><DL><DD><B>Deprecated.</B>&nbsp;<I>Use initialize() instead.</I><P><DD>Causes this class to initialize itself which in turn initializes all of the Turbine Services that need to be initialized.<DD><DL></DL></DD></DL><HR><A NAME="initialize()"><!-- --></A><H3>initialize</H3><PRE>public void <B>initialize</B>()</PRE><DL><DD>Causes this class to initialize itself which in turn initializes all of the Turbine Services that need to be initialized.<DD><DL><DT><B>Specified by: </B><DD><CODE>initialize</CODE> in interface <CODE>org.apache.stratum.lifecycle.Initializable</CODE></DL></DD><DD><DL><DT><B>See Also: </B><DD><CODE>Initializable</CODE></DL></DD></DL><HR><A NAME="init(org.apache.turbine.util.RunData)"><!-- --></A><H3>init</H3><PRE>public void <B>init</B>(<A HREF="../../../../org/apache/turbine/util/RunData.html">RunData</A>&nbsp;data)</PRE><DL><DD>Initialization requiring a HTTP <code>GET</code> request.<DD><DL></DL></DD></DL><HR><A NAME="dispose()"><!-- --></A><H3>dispose</H3><PRE>public void <B>dispose</B>()</PRE><DL><DD>Shutdown the Turbine System, lifecycle style<DD><DL><DT><B>Specified by: </B><DD><CODE>dispose</CODE> in interface <CODE>org.apache.stratum.lifecycle.Disposable</CODE></DL></DD></DL><HR><A NAME="getServletContext()"><!-- --></A><H3>getServletContext</H3><PRE>public javax.servlet.ServletContext <B>getServletContext</B>()</PRE><DL><DD>Returns a reference to the object cast onto ServletContext type.<DD><DL><DT><B>Specified by: </B><DD><CODE>getServletContext</CODE> in interface <CODE>javax.servlet.ServletConfig</CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>a ServletContext reference</DL></DD></DL><HR><A NAME="getRealPath(java.lang.String)"><!-- --></A><H3>getRealPath</H3><PRE>public java.lang.String <B>getRealPath</B>(java.lang.String&nbsp;path)</PRE><DL><DD>Translates a path relative to the web application root into an absolute path.<DD><DL><DT><B>Specified by: </B><DD><CODE>getRealPath</CODE> in interface <CODE>javax.servlet.ServletContext</CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>path</CODE> - A path relative to the web application root.<DT><B>Returns:</B><DD>An absolute version of the supplied path, or <code>null</code> if the translated path doesn't map to a file or directory.</DL></DD></DL><HR><A NAME="getInitParameter(java.lang.String)"><!-- --></A><H3>getInitParameter</H3><PRE>public java.lang.String <B>getInitParameter</B>(java.lang.String&nbsp;name)</PRE><DL><DD>Retrieves an initialization parameter.<DD><DL><DT><B>Specified by: </B><DD><CODE>getInitParameter</CODE> in interface <CODE>javax.servlet.ServletConfig</CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>name</CODE> - the name of the parameter.<DT><B>Returns:</B><DD>the value of the parameter.</DL></DD></DL><HR><A NAME="getInitParameterNames()"><!-- --></A><H3>getInitParameterNames</H3><PRE>public java.util.Enumeration <B>getInitParameterNames</B>()</PRE><DL><DD>Retrieves an Enumeration of initialization parameter names.<DD><DL><DT><B>Specified by: </B><DD><CODE>getInitParameterNames</CODE> in interface <CODE>javax.servlet.ServletConfig</CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>an Enumeration of initialization parameter names.</DL></DD></DL><HR><A NAME="getServletName()"><!-- --></A><H3>getServletName</H3><PRE>public java.lang.String <B>getServletName</B>()</PRE><DL><DD>Returns the servlet name. Fixed value "Turbine" is returned.<DD><DL><DT><B>Specified by: </B><DD><CODE>getServletName</CODE> in interface <CODE>javax.servlet.ServletConfig</CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>the servlet name.</DL></DD></DL><HR><A NAME="getServletContextName()"><!-- --></A><H3>getServletContextName</H3><PRE>public java.lang.String <B>getServletContextName</B>()</PRE><DL><DD>Returns the context name. Fixed value "Turbine" is returned<DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the context name</DL></DD></DL><HR><A NAME="getResource(java.lang.String)"><!-- --></A><H3>getResource</H3><PRE>public java.net.URL <B>getResource</B>(java.lang.String&nbsp;s)                         throws java.net.MalformedURLException</PRE><DL><DD>Returns a URL to the resource that is mapped to a specified path. The path must begin with a "/" and is interpreted as relative to the current context root.<DD><DL><DT><B>Specified by: </B><DD><CODE>getResource</CODE> in interface <CODE>javax.servlet.ServletContext</CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>s</CODE> - the path to the resource<DT><B>Returns:</B><DD>a URL pointing to the resource<DT><B>Throws:</B><DD><CODE>java.net.MalformedURLException</CODE> - &nbsp;</DL></DD></DL><HR><A NAME="getResourceAsStream(java.lang.String)"><!-- --></A><H3>getResourceAsStream</H3><PRE>public java.io.InputStream <B>getResourceAsStream</B>(java.lang.String&nbsp;s)</PRE><DL><DD>Returns the resource located at the named path as an <code>InputStream</code> object.<DD><DL><DT><B>Specified by: </B><DD><CODE>getResourceAsStream</CODE> in interface <CODE>javax.servlet.ServletContext</CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>s</CODE> - the path to the resource<DT><B>Returns:</B><DD>an InputStream object from which the resource can be read</DL></DD></DL><HR><A NAME="log(java.lang.Exception, java.lang.String)"><!-- --></A><H3>log</H3><PRE>public void <B>log</B>(java.lang.Exception&nbsp;e,                java.lang.String&nbsp;m)</PRE><DL><DD><B>Deprecated.</B>&nbsp;<I></I>&nbsp;

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -