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

📄 defaultturbinerundata.html

📁 turbine教程
💻 HTML
📖 第 1 页 / 共 5 页
字号:
</TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected &nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../org/apache/turbine/services/rundata/DefaultTurbineRunData.html#setScriptName(java.lang.String)">setScriptName</A></B>(java.lang.String&nbsp;sn)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the cached script name that is stored in the server data.</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/services/rundata/DefaultTurbineRunData.html#setServerData(org.apache.turbine.util.ServerData)">setServerData</A></B>(<A HREF="../../../../../org/apache/turbine/util/ServerData.html">ServerData</A>&nbsp;serverData)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the server data of the request.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected &nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../org/apache/turbine/services/rundata/DefaultTurbineRunData.html#setServerName(java.lang.String)">setServerName</A></B>(java.lang.String&nbsp;sn)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the cached server same that is stored in the server data.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected &nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../org/apache/turbine/services/rundata/DefaultTurbineRunData.html#setServerPort(int)">setServerPort</A></B>(int&nbsp;port)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the cached server port that is stored in the server data.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected &nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../org/apache/turbine/services/rundata/DefaultTurbineRunData.html#setServerScheme(java.lang.String)">setServerScheme</A></B>(java.lang.String&nbsp;ss)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the cached server scheme that is stored in the server data.</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/services/rundata/DefaultTurbineRunData.html#setServletConfig(javax.servlet.ServletConfig)">setServletConfig</A></B>(javax.servlet.ServletConfig&nbsp;config)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Setsthe servlet configuration used during servlet init.</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/services/rundata/DefaultTurbineRunData.html#setSession(javax.servlet.http.HttpSession)">setSession</A></B>(javax.servlet.http.HttpSession&nbsp;sess)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the servlet session inforamtion.</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/services/rundata/DefaultTurbineRunData.html#setStackTrace(java.lang.String, java.lang.Throwable)">setStackTrace</A></B>(java.lang.String&nbsp;trace,              java.lang.Throwable&nbsp;exp)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the stack trace.</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/services/rundata/DefaultTurbineRunData.html#setStatusCode(int)">setStatusCode</A></B>(int&nbsp;sc)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the HTTP status code to return.</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/services/rundata/DefaultTurbineRunData.html#setSystemError(org.apache.turbine.util.SystemError)">setSystemError</A></B>(<A HREF="../../../../../org/apache/turbine/util/SystemError.html">SystemError</A>&nbsp;err)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Adds a critical system error.</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/services/rundata/DefaultTurbineRunData.html#setTemplateEncoding(java.lang.String)">setTemplateEncoding</A></B>(java.lang.String&nbsp;encoding)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the character encoding to use for reading template files.</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/services/rundata/DefaultTurbineRunData.html#setTitle(java.lang.String)">setTitle</A></B>(java.lang.String&nbsp;title)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the title of the page.</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/services/rundata/DefaultTurbineRunData.html#setUser(org.apache.turbine.om.security.User)">setUser</A></B>(<A HREF="../../../../../org/apache/turbine/om/security/User.html">User</A>&nbsp;user)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the user.</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/services/rundata/DefaultTurbineRunData.html#unsetMessage()">unsetMessage</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Unsets the message for the request.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../org/apache/turbine/services/rundata/DefaultTurbineRunData.html#userExists()">userExists</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Checks if a user exists in this session.</TD></TR></TABLE>&nbsp;<A NAME="methods_inherited_from_class_org.apache.turbine.util.pool.RecyclableSupport"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Methods inherited from class org.apache.turbine.util.pool.<A HREF="../../../../../org/apache/turbine/util/pool/RecyclableSupport.html">RecyclableSupport</A></B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../../../../../org/apache/turbine/util/pool/RecyclableSupport.html#doDispose()">doDispose</A>, <A HREF="../../../../../org/apache/turbine/util/pool/RecyclableSupport.html#isDisposed()">isDisposed</A>, <A HREF="../../../../../org/apache/turbine/util/pool/RecyclableSupport.html#Recyclable()">Recyclable</A></CODE></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;<A NAME="methods_inherited_from_class_org.apache.turbine.util.pool.Recyclable"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Methods inherited from interface org.apache.turbine.util.pool.<A HREF="../../../../../org/apache/turbine/util/pool/Recyclable.html">Recyclable</A></B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../../../../../org/apache/turbine/util/pool/Recyclable.html#isDisposed()">isDisposed</A></CODE></TD></TR></TABLE>&nbsp;<P><!-- ============ FIELD DETAIL =========== --><A NAME="field_detail"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Field Detail</B></FONT></TD></TR></TABLE><A NAME="cookies"><!-- --></A><H3>cookies</H3><PRE>public <A HREF="../../../../../org/apache/turbine/util/CookieParser.html">CookieParser</A> <B>cookies</B></PRE><DL><DD>A reference to a cookie parser.</DL><!-- ========= 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="DefaultTurbineRunData()"><!-- --></A><H3>DefaultTurbineRunData</H3><PRE>public <B>DefaultTurbineRunData</B>()</PRE><DL><DD>Constructs a run data object.</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="getUserFromSession(javax.servlet.http.HttpSession)"><!-- --></A><H3>getUserFromSession</H3><PRE>public static <A HREF="../../../../../org/apache/turbine/om/security/User.html">User</A> <B>getUserFromSession</B>(javax.servlet.http.HttpSession&nbsp;session)</PRE><DL><DD>Attempts to get the User object from the session.  If it does not exist, it returns null.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>session</CODE> - An HttpSession.<DT><B>Returns:</B><DD>A User.</DL></DD></DL><HR><A NAME="removeUserFromSession(javax.servlet.http.HttpSession)"><!-- --></A><H3>removeUserFromSession</H3><PRE>public static boolean <B>removeUserFromSession</B>(javax.servlet.http.HttpSession&nbsp;session)</PRE><DL><DD>Allows one to invalidate the user in a session.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>session</CODE> - An HttpSession.<DT><B>Returns:</B><DD>True if user was invalidated.</DL></DD></DL><HR><A NAME="getDefaultLocale()"><!-- --></A><H3>getDefaultLocale</H3><PRE>protected static java.util.Locale <B>getDefaultLocale</B>()</PRE><DL><DD>Gets the default locale defined by properties named "locale.default.lang" and "locale.default.country".<DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the default locale or null.</DL></DD></DL><HR><A NAME="getDefaultCharSet()"><!-- --></A><H3>getDefaultCharSet</H3><PRE>protected java.lang.String <B>getDefaultCharSet</B>()</PRE><DL><DD>Gets the default charset defined by a property named "locale.default.charset" or by the specified locale. If the specified locale is null, the default locale is applied.<DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the name of the default charset or null.</DL></DD></DL><HR><A NAME="recycle()"><!-- --></A><H3>recycle</H3><PRE>public void <B>recycle</B>()</PRE><DL><DD>Recycles a run data object.<DD><DL><DT><B>Specified by: </B><DD><CODE><A HREF="../../../../../org/apache/turbine/util/pool/Recyclable.html#recycle()">recycle</A></CODE> in interface <CODE><A HREF="../../../../../org/apache/turbine/util/pool/Recyclable.html">Recyclable</A></CODE><DT><B>Overrides:</B><DD><CODE><A HREF="../../../../../org/apache/turbine/util/pool/RecyclableSupport.html#recycle()">recycle</A></CODE> in class <CODE><A HREF="../../../../../org/apache/turbine/util/pool/RecyclableSupport.html">RecyclableSupport</A></CODE></DL></DD></DL>

⌨️ 快捷键说明

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