📄 rundata.html
字号:
<DT><B>Returns:</B><DD>true if out is set.</DL></DD></DL><HR><A NAME="getOut()"><!-- --></A><H3>getOut</H3><PRE>public java.io.PrintWriter <B>getOut</B>() throws java.io.IOException</PRE><DL><DD>Gets the print writer. First time calling this will set the print writer via the response.<DD><DL><DT><B>Returns:</B><DD>a print writer.<DT><B>Throws:</B><DD><CODE>IOException.</CODE> - </DL></DD></DL><HR><A NAME="declareDirectResponse()"><!-- --></A><H3>declareDirectResponse</H3><PRE>public void <B>declareDirectResponse</B>()</PRE><DL><DD>Declares that output will be direct to the response stream, even though getOut() may never be called. Useful for response mechanisms that may call res.getWriter() themselves (such as JSP.)</DL><HR><A NAME="getLocale()"><!-- --></A><H3>getLocale</H3><PRE>public java.util.Locale <B>getLocale</B>()</PRE><DL><DD>Gets the locale. If it has not already been defined with setLocale(), then properties named "locale.default.lang" and "locale.default.country" are checked from the Resource Service and the corresponding locale is returned. If these properties are undefined, JVM's default locale is returned.<DD><DL><DT><B>Returns:</B><DD>the locale.</DL></DD></DL><HR><A NAME="setLocale(java.util.Locale)"><!-- --></A><H3>setLocale</H3><PRE>public void <B>setLocale</B>(java.util.Locale locale)</PRE><DL><DD>Sets the locale.<DD><DL><DT><B>Parameters:</B><DD><CODE>locale</CODE> - the new locale.</DL></DD></DL><HR><A NAME="getCharSet()"><!-- --></A><H3>getCharSet</H3><PRE>public java.lang.String <B>getCharSet</B>()</PRE><DL><DD>Gets the charset. If it has not already been defined with setCharSet(), then a property named "locale.default.charset" is checked from the Resource Service and returned. If this property is undefined, the default charset of the locale is returned. If the locale is undefined, null is returned.<DD><DL><DT><B>Returns:</B><DD>the name of the charset or null.</DL></DD></DL><HR><A NAME="setCharSet(java.lang.String)"><!-- --></A><H3>setCharSet</H3><PRE>public void <B>setCharSet</B>(java.lang.String charset)</PRE><DL><DD>Sets the charset.<DD><DL><DT><B>Parameters:</B><DD><CODE>charset</CODE> - the name of the new charset.</DL></DD></DL><HR><A NAME="getContentType()"><!-- --></A><H3>getContentType</H3><PRE>public java.lang.String <B>getContentType</B>()</PRE><DL><DD>Gets the HTTP content type to return. If a charset has been specified, it is included in the content type. If the charset has not been specified and the main type of the content type is "text", the default charset is included. If the default charset is undefined, but the default locale is defined and it is not the US locale, a locale specific charset is included.<DD><DL><DT><B>Returns:</B><DD>the content type or an empty string.</DL></DD></DL><HR><A NAME="setContentType(java.lang.String)"><!-- --></A><H3>setContentType</H3><PRE>public void <B>setContentType</B>(java.lang.String ct)</PRE><DL><DD>Sets the HTTP content type to return.<DD><DL><DT><B>Parameters:</B><DD><CODE>ct</CODE> - the new content type.</DL></DD></DL><HR><A NAME="getRedirectURI()"><!-- --></A><H3>getRedirectURI</H3><PRE>public java.lang.String <B>getRedirectURI</B>()</PRE><DL><DD>Gets the redirect URI. If this is set, also make sure to set the status code to 302.<DD><DL><DT><B>Returns:</B><DD>a string, "" if null.</DL></DD></DL><HR><A NAME="setRedirectURI(java.lang.String)"><!-- --></A><H3>setRedirectURI</H3><PRE>public void <B>setRedirectURI</B>(java.lang.String ruri)</PRE><DL><DD>Sets the redirect uri. If this is set, also make sure to set the status code to 302.<DD><DL><DT><B>Parameters:</B><DD><CODE>ruri</CODE> - a string.</DL></DD></DL><HR><A NAME="getStatusCode()"><!-- --></A><H3>getStatusCode</H3><PRE>public int <B>getStatusCode</B>()</PRE><DL><DD>Gets the HTTP status code to return.<DD><DL><DT><B>Returns:</B><DD>the status.</DL></DD></DL><HR><A NAME="setStatusCode(int)"><!-- --></A><H3>setStatusCode</H3><PRE>public void <B>setStatusCode</B>(int sc)</PRE><DL><DD>Sets the HTTP status code to return.<DD><DL><DT><B>Parameters:</B><DD><CODE>sc</CODE> - the status.</DL></DD></DL><HR><A NAME="getSystemErrors()"><!-- --></A><H3>getSystemErrors</H3><PRE>public <A HREF="../../../../org/apache/turbine/util/SystemError.html">SystemError</A>[] <B>getSystemErrors</B>()</PRE><DL><DD>Gets an array of system errors.<DD><DL><DT><B>Returns:</B><DD>a SystemError[].</DL></DD></DL><HR><A NAME="setSystemError(org.apache.turbine.util.SystemError)"><!-- --></A><H3>setSystemError</H3><PRE>public void <B>setSystemError</B>(<A HREF="../../../../org/apache/turbine/util/SystemError.html">SystemError</A> err)</PRE><DL><DD>Adds a critical system error.<DD><DL><DT><B>Parameters:</B><DD><CODE>err</CODE> - a system error.</DL></DD></DL><HR><A NAME="getJNDIContexts()"><!-- --></A><H3>getJNDIContexts</H3><PRE>public java.util.Hashtable <B>getJNDIContexts</B>()</PRE><DL><DD>Gets JNDI Contexts.<DD><DL><DT><B>Returns:</B><DD>a hashtable.</DL></DD></DL><HR><A NAME="setJNDIContexts(java.util.Hashtable)"><!-- --></A><H3>setJNDIContexts</H3><PRE>public void <B>setJNDIContexts</B>(java.util.Hashtable contexts)</PRE><DL><DD>Sets JNDI Contexts.<DD><DL><DT><B>Parameters:</B><DD><CODE>contexts</CODE> - a hashtable.</DL></DD></DL><HR><A NAME="getServerScheme()"><!-- --></A><H3>getServerScheme</H3><PRE>public java.lang.String <B>getServerScheme</B>()</PRE><DL><DD>Gets the cached server scheme.<DD><DL><DT><B>Returns:</B><DD>a string.</DL></DD></DL><HR><A NAME="getServerName()"><!-- --></A><H3>getServerName</H3><PRE>public java.lang.String <B>getServerName</B>()</PRE><DL><DD>Gets the cached server name.<DD><DL><DT><B>Returns:</B><DD>a string.</DL></DD></DL><HR><A NAME="getServerPort()"><!-- --></A><H3>getServerPort</H3><PRE>public int <B>getServerPort</B>()</PRE><DL><DD>Gets the cached server port.<DD><DL><DT><B>Returns:</B><DD>an int.</DL></DD></DL><HR><A NAME="getContextPath()"><!-- --></A><H3>getContextPath</H3><PRE>public java.lang.String <B>getContextPath</B>()</PRE><DL><DD>Gets the cached context path.<DD><DL><DT><B>Returns:</B><DD>a string.</DL></DD></DL><HR><A NAME="getScriptName()"><!-- --></A><H3>getScriptName</H3><PRE>public java.lang.String <B>getScriptName</B>()</PRE><DL><DD>Gets the cached script name.<DD><DL><DT><B>Returns:</B><DD>a string.</DL></DD></DL><HR><A NAME="getServerData()"><!-- --></A><H3>getServerData</H3><PRE>public <A HREF="../../../../org/apache/turbine/util/ServerData.html">ServerData</A> <B>getServerData</B>()</PRE><DL><DD>Gets the server data used by the request.<DD><DL><DT><B>Returns:</B><DD>server data.</DL></DD></DL><HR><A NAME="getRemoteAddr()"><!-- --></A><H3>getRemoteAddr</H3><PRE>public java.lang.String <B>getRemoteAddr</B>()</PRE><DL><DD>Gets the IP address of the client that sent the request.<DD><DL><DT><B>Returns:</B><DD>a string.</DL></DD></DL><HR><A NAME="getRemoteHost()"><!-- --></A><H3>getRemoteHost</H3><PRE>public java.lang.String <B>getRemoteHost</B>()</PRE><DL><DD>Gets the qualified name of the client that sent the request.<DD><DL><DT><B>Returns:</B><DD>a string.</DL></DD></DL><HR><A NAME="getUserAgent()"><!-- --></A><H3>getUserAgent</H3><PRE>public java.lang.String <B>getUserAgent</B>()</PRE><DL><DD>Get the user agent for the request.<DD><DL><DT><B>Returns:</B><DD>a string.</DL></DD></DL><HR><A NAME="populate()"><!-- --></A><H3>populate</H3><PRE>public void <B>populate</B>()</PRE><DL><DD>Pulls a user object from the session and increments the access counter and sets the last access date for the object.</DL><HR><A NAME="save()"><!-- --></A><H3>save</H3><PRE>public void <B>save</B>()</PRE><DL><DD>Saves a user object into the session.</DL><HR><A NAME="getStackTrace()"><!-- --></A><H3>getStackTrace</H3><PRE>public java.lang.String <B>getStackTrace</B>()</PRE><DL><DD>Gets the stack trace if set.<DD><DL><DT><B>Returns:</B><DD>the stack trace.</DL></DD></DL><HR><A NAME="getStackTraceException()"><!-- --></A><H3>getStackTraceException</H3><PRE>public java.lang.Throwable <B>getStackTraceException</B>()</PRE><DL><DD>Gets the stack trace exception if set.<DD><DL><DT><B>Returns:</B><DD>the stack exception.</DL></DD></DL><HR><A NAME="setStackTrace(java.lang.String, java.lang.Throwable)"><!-- --></A><H3>setStackTrace</H3><PRE>public void <B>setStackTrace</B>(java.lang.String trace, java.lang.Throwable exp)</PRE><DL><DD>Sets the stack trace.<DD><DL><DT><B>Parameters:</B><DD><CODE>trace</CODE> - the stack trace.<DD><CODE>exp</CODE> - the exception.</DL></DD></DL><HR><A NAME="getVarDebug()"><!-- --></A><H3>getVarDebug</H3><PRE>public java.util.Hashtable <B>getVarDebug</B>()</PRE><DL><DD>Gets a table of debug variables.<DD><DL><DT><B>Returns:</B><DD>a hashtable for debug variables.</DL></DD></DL><!-- ========= END OF CLASS DATA ========= --><HR><!-- ========== START OF NAVBAR ========== --><A NAME="navbar_bottom"><!-- --></A><TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0"><TR><TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"><A NAME="navbar_bottom_firstrow"><!-- --></A><TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3"> <TR ALIGN="center" VALIGN="top"> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/RunData.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> </TR></TABLE></TD><TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../../org/apache/turbine/util/ParameterParser.html"><B>PREV CLASS</B></A> <A HREF="../../../../org/apache/turbine/util/ValueParser.html"><B>NEXT CLASS</B></A></FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../../index.html" TARGET="_top"><B>FRAMES</B></A> <A HREF="RunData.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD></TR><TR><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> SUMMARY: INNER | FIELD | CONSTR | <A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL: FIELD | CONSTR | <A HREF="#method_detail">METHOD</A></FONT></TD></TR></TABLE><!-- =========== END OF NAVBAR =========== --><HR>Copyright © 2000-2002 Apache Software Foundation. All Rights Reserved.</BODY></HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -