📄 errorresponseinfo.html
字号:
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TH ALIGN="left"><B>Methods inherited from class java.lang.Object</B></TH></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD></TR></TABLE> <P><!-- ============ FIELD DETAIL =========== --><!-- ========= CONSTRUCTOR DETAIL ======== --><A NAME="constructor_detail"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Constructor Detail</B></FONT></TD></TR></TABLE><A NAME="ErrorResponseInfo(int)"><!-- --></A><H3>ErrorResponseInfo</H3><PRE>public <B>ErrorResponseInfo</B>(int errorCode)</PRE><DL><DD>Construct an ErrorResponseInfo object with error code only and no text<P><DT><B>Parameters:</B><DD><CODE>errorCode</CODE> - the int error code</DL><HR><A NAME="ErrorResponseInfo(int, java.lang.String)"><!-- --></A><H3>ErrorResponseInfo</H3><PRE>public <B>ErrorResponseInfo</B>(int errorCode, java.lang.String errorText)</PRE><DL><DD>Construct an ErrorResponseInfo object with error code and text<P><DT><B>Parameters:</B><DD><CODE>errorCode</CODE> - the int error code<DD><CODE>errorText</CODE> - the error text</DL><!-- ============ METHOD DETAIL ========== --><A NAME="method_detail"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Method Detail</B></FONT></TD></TR></TABLE><A NAME="getErrorCode()"><!-- --></A><H3>getErrorCode</H3><PRE>public int <B>getErrorCode</B>()</PRE><DL><DD>Return the error code<P><DD><DL><DT><B>Returns:</B><DD>returns the error code</DL></DD></DL><HR><A NAME="getErrorText()"><!-- --></A><H3>getErrorText</H3><PRE>public java.lang.String <B>getErrorText</B>()</PRE><DL><DD>Return the error text<P><DD><DL><DT><B>Returns:</B><DD>returns the error text, can be <code>null</code></DL></DD></DL><HR><A NAME="getErrorResponse(javax.portlet.PortletRequest)"><!-- --></A><H3>getErrorResponse</H3><PRE>public static <A HREF="../../../../../com/ibm/portal/struts/portlet/ErrorResponseInfo.html" title="class in com.ibm.portal.struts.portlet">ErrorResponseInfo</A> <B>getErrorResponse</B>(javax.portlet.PortletRequest request)</PRE><DL><DD>This method will return the ErrorResponseInfo object from session if one can be found. If null is returned then the processing did not result in a call to sendError.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>request</CODE> - the request object<DT><B>Returns:</B><DD>returns the ErrorResponseInfo object if present or <code>null</code> otherwise</DL></DD></DL><HR><A NAME="setErrorResponse(javax.portlet.PortletRequest, int)"><!-- --></A><H3>setErrorResponse</H3><PRE>public static void <B>setErrorResponse</B>(javax.portlet.PortletRequest request, int errorCode)</PRE><DL><DD>This method is used to set an error code. The error code can then be retrieved when the IViewCommands are created. If an error has been detected then an StrutsViewErrorCommand will be created.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>request</CODE> - the request object<DD><CODE>errorCode</CODE> - the error status code</DL></DD></DL><HR><A NAME="setErrorResponse(javax.portlet.PortletRequest, int, java.lang.String)"><!-- --></A><H3>setErrorResponse</H3><PRE>public static void <B>setErrorResponse</B>(javax.portlet.PortletRequest request, int errorCode, java.lang.String errorText)</PRE><DL><DD>This method is used to set an error code and error text. The error code can then be retrieved when the IViewCommands are created. If an error has been detected then an StrutsViewErrorCommand will be created.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>request</CODE> - the request object<DD><CODE>errorCode</CODE> - the error status code<DD><CODE>errorText</CODE> - the error status text</DL></DD></DL><HR><A NAME="clearErrorResponse(javax.portlet.PortletRequest)"><!-- --></A><H3>clearErrorResponse</H3><PRE>public static void <B>clearErrorResponse</B>(javax.portlet.PortletRequest request)</PRE><DL><DD>Remove error information. Once the appropriate <code>StrutsViewCommand</code> has been created for this error, the error information should be removed.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>request</CODE> - the request object</DL></DD></DL><!-- ========= END OF CLASS DATA ========= --><HR><!-- ======= START OF BOTTOM NAVBAR ====== --><A NAME="navbar_bottom"><!-- --></A><A HREF="#skip-navbar_bottom" title="Skip navigation links"></A><TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""><TR><TD COLSPAN=3 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"><A NAME="navbar_bottom_firstrow"><!-- --></A><TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> <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"> <A HREF="#main"><FONT CLASS="NavBarFont1Rev"><B>Class</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="../../../../../serialized-form.html"><FONT CLASS="NavBarFont1"><B>Serialized</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"> PREV CLASS <A HREF="../../../../../com/ibm/portal/struts/portlet/PortletPreferencesUserConfigurationDataStore.html" title="class in com.ibm.portal.struts.portlet"><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="ErrorResponseInfo.html" target="_top"><B>NO FRAMES</B></A> <SCRIPT type="text/javascript"> <!-- if(window==top) { document.writeln('<A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>'); } //--></SCRIPT><NOSCRIPT> <A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A></NOSCRIPT></FONT></TD></TR><TR><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> SUMMARY: NESTED | FIELD | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD></TR></TABLE><A NAME="skip-navbar_bottom"></A><!-- ======== END OF BOTTOM NAVBAR ======= --><HR></BODY></HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -