soapfault.html
来自「j2ee的API 1.4版本,j2ee的帮助文档」· HTML 代码 · 共 676 行 · 第 1/3 页
HTML
676 行
<DD><CODE><A HREF="../../../javax/xml/soap/SOAPException.html" title="class in javax.xml.soap">SOAPException</A></CODE> - if there was an error in adding the <code>faultActor</code> to the underlying XML tree.<DT><B>See Also:</B><DD><A HREF="../../../javax/xml/soap/SOAPFault.html#getFaultActor()"><CODE>getFaultActor()</CODE></A></DL></DD></DL><HR><A NAME="getFaultActor()"><!-- --></A><H3>getFaultActor</H3><PRE>public <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> <B>getFaultActor</B>()</PRE><DL><DD>Gets the fault actor for this <code>SOAPFault</code> object.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>a <code>String</code> giving the actor in the message path that caused this <code>SOAPFault</code> object<DT><B>See Also:</B><DD><A HREF="../../../javax/xml/soap/SOAPFault.html#setFaultActor(java.lang.String)"><CODE>setFaultActor(java.lang.String)</CODE></A></DL></DD></DL><HR><A NAME="setFaultString(java.lang.String)"><!-- --></A><H3>setFaultString</H3><PRE>public void <B>setFaultString</B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> faultString) throws <A HREF="../../../javax/xml/soap/SOAPException.html" title="class in javax.xml.soap">SOAPException</A></PRE><DL><DD>Sets the fault string for this <code>SOAPFault</code> object to the given string.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>faultString</CODE> - a <code>String</code> giving an explanation of the fault<DT><B>Throws:</B><DD><CODE><A HREF="../../../javax/xml/soap/SOAPException.html" title="class in javax.xml.soap">SOAPException</A></CODE> - if there was an error in adding the <code>faultString</code> to the underlying XML tree.<DT><B>See Also:</B><DD><A HREF="../../../javax/xml/soap/SOAPFault.html#getFaultString()"><CODE>getFaultString()</CODE></A></DL></DD></DL><HR><A NAME="setFaultString(java.lang.String, java.util.Locale)"><!-- --></A><H3>setFaultString</H3><PRE>public void <B>setFaultString</B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> faultString, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/util/Locale.html" title="class or interface in java.util">Locale</A> locale) throws <A HREF="../../../javax/xml/soap/SOAPException.html" title="class in javax.xml.soap">SOAPException</A></PRE><DL><DD>Sets the fault string for this <code>SOAPFault</code> object to the given string and localized to the given locale.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>faultString</CODE> - a <code>String</code> giving an explanation of the fault<DD><CODE>locale</CODE> - a <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/util.Locale.html" title="class or interface in java.lang"><CODE>Locale</CODE></A> object indicating the native language of the <code>faultString</code><DT><B>Throws:</B><DD><CODE><A HREF="../../../javax/xml/soap/SOAPException.html" title="class in javax.xml.soap">SOAPException</A></CODE> - if there was an error in adding the <code>faultString</code> to the underlying XML tree.<DT><B>Since:</B></DT> <DD>SAAJ 1.2</DD><DT><B>See Also:</B><DD><A HREF="../../../javax/xml/soap/SOAPFault.html#getFaultString()"><CODE>getFaultString()</CODE></A></DL></DD></DL><HR><A NAME="getFaultString()"><!-- --></A><H3>getFaultString</H3><PRE>public <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> <B>getFaultString</B>()</PRE><DL><DD>Gets the fault string for this <code>SOAPFault</code> object.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>a <code>String</code> giving an explanation of the fault<DT><B>See Also:</B><DD><A HREF="../../../javax/xml/soap/SOAPFault.html#setFaultString(java.lang.String)"><CODE>setFaultString(String)</CODE></A>, <A HREF="../../../javax/xml/soap/SOAPFault.html#setFaultString(java.lang.String, java.util.Locale)"><CODE>setFaultString(String, Locale)</CODE></A></DL></DD></DL><HR><A NAME="getFaultStringLocale()"><!-- --></A><H3>getFaultStringLocale</H3><PRE>public <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/util/Locale.html" title="class or interface in java.util">Locale</A> <B>getFaultStringLocale</B>()</PRE><DL><DD>Gets the locale of the fault string for this <code>SOAPFault</code> object.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>a <code>Locale</code> object indicating the native language of the fault string or <code>null</code> if no locale was specified<DT><B>Since:</B></DT> <DD>SAAJ 1.2</DD><DT><B>See Also:</B><DD><A HREF="../../../javax/xml/soap/SOAPFault.html#setFaultString(java.lang.String, java.util.Locale)"><CODE>setFaultString(String, Locale)</CODE></A></DL></DD></DL><HR><A NAME="getDetail()"><!-- --></A><H3>getDetail</H3><PRE>public <A HREF="../../../javax/xml/soap/Detail.html" title="interface in javax.xml.soap">Detail</A> <B>getDetail</B>()</PRE><DL><DD>Returns the optional detail element for this <code>SOAPFault</code> object. <P> A <code>Detail</code> object carries application-specific error information related to <code>SOAPBodyElement</code> objects.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>a <code>Detail</code> object with application-specific error information</DL></DD></DL><HR><A NAME="addDetail()"><!-- --></A><H3>addDetail</H3><PRE>public <A HREF="../../../javax/xml/soap/Detail.html" title="interface in javax.xml.soap">Detail</A> <B>addDetail</B>() throws <A HREF="../../../javax/xml/soap/SOAPException.html" title="class in javax.xml.soap">SOAPException</A></PRE><DL><DD>Creates an optional <code>Detail</code> object and sets it as the <code>Detail</code> object for this <code>SOAPFault</code> object. <P> It is illegal to add a detail when the fault already contains a detail. Therefore, this method should be called only after the existing detail has been removed.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the new <code>Detail</code> object<DT><B>Throws:</B><DD><CODE><code>SOAPException</code></CODE> - if this <code>SOAPFault</code> object already contains a valid <code>Detail</code> object<DD><CODE><A HREF="../../../javax/xml/soap/SOAPException.html" title="class in javax.xml.soap">SOAPException</A></CODE></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"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </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><b>Java<sup><font size=-2>TM</font></sup> 2 Platform<br>Ent. Ed. v1.4</b></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../javax/xml/soap/SOAPEnvelope.html" title="interface in javax.xml.soap"><B>PREV CLASS</B></A> <A HREF="../../../javax/xml/soap/SOAPFaultElement.html" title="interface in javax.xml.soap"><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="SOAPFault.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 | 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><A NAME="skip-navbar_bottom"></A><!-- ======== END OF BOTTOM NAVBAR ======= --><HR><font size="-1"><a href="http://java.sun.com/webapps/bugreport">Submit a bug or feature</a> <p>Copyright 2003 Sun Microsystems, Inc. All rights reserved.</font></BODY></HTML>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?