📄 packeterror.condition.html
字号:
</DL><HR><A NAME="registration_required"><!-- --></A><H3>registration_required</H3><PRE>public static final <A HREF="../../../org/xmpp/packet/PacketError.Condition.html" title="enum in org.xmpp.packet">PacketError.Condition</A> <B>registration_required</B></PRE><DL><DD>The requesting entity is not authorized to access the requested service because registration is required; the associated error type SHOULD be "auth".<P><DL></DL></DL><HR><A NAME="remote_server_not_found"><!-- --></A><H3>remote_server_not_found</H3><PRE>public static final <A HREF="../../../org/xmpp/packet/PacketError.Condition.html" title="enum in org.xmpp.packet">PacketError.Condition</A> <B>remote_server_not_found</B></PRE><DL><DD>A remote server or service specified as part or all of the JID of the intended recipient does not exist; the associated error type SHOULD be "cancel".<P><DL></DL></DL><HR><A NAME="remote_server_timeout"><!-- --></A><H3>remote_server_timeout</H3><PRE>public static final <A HREF="../../../org/xmpp/packet/PacketError.Condition.html" title="enum in org.xmpp.packet">PacketError.Condition</A> <B>remote_server_timeout</B></PRE><DL><DD>A remote server or service specified as part or all of the JID of the intended recipient (or required to fulfill a request) could not be contacted within a reasonable amount of time; the associated error type SHOULD be "wait".<P><DL></DL></DL><HR><A NAME="resource_constraint"><!-- --></A><H3>resource_constraint</H3><PRE>public static final <A HREF="../../../org/xmpp/packet/PacketError.Condition.html" title="enum in org.xmpp.packet">PacketError.Condition</A> <B>resource_constraint</B></PRE><DL><DD>The server or recipient lacks the system resources necessary to service the request; the associated error type SHOULD be "wait".<P><DL></DL></DL><HR><A NAME="service_unavailable"><!-- --></A><H3>service_unavailable</H3><PRE>public static final <A HREF="../../../org/xmpp/packet/PacketError.Condition.html" title="enum in org.xmpp.packet">PacketError.Condition</A> <B>service_unavailable</B></PRE><DL><DD>The server or recipient does not currently provide the requested service; the associated error type SHOULD be "cancel".<P><DL></DL></DL><HR><A NAME="subscription_required"><!-- --></A><H3>subscription_required</H3><PRE>public static final <A HREF="../../../org/xmpp/packet/PacketError.Condition.html" title="enum in org.xmpp.packet">PacketError.Condition</A> <B>subscription_required</B></PRE><DL><DD>The requesting entity is not authorized to access the requested service because a subscription is required; the associated error type SHOULD be "auth".<P><DL></DL></DL><HR><A NAME="undefined_condition"><!-- --></A><H3>undefined_condition</H3><PRE>public static final <A HREF="../../../org/xmpp/packet/PacketError.Condition.html" title="enum in org.xmpp.packet">PacketError.Condition</A> <B>undefined_condition</B></PRE><DL><DD>The error condition is not one of those defined by the other conditions in this list; any error type may be associated with this condition, and it SHOULD be used only in conjunction with an application-specific condition.<p> Implementation note: the default type for this condition is <A HREF="../../../org/xmpp/packet/PacketError.Type.html#wait"><CODE>PacketError.Type.wait</CODE></A>, which is not specified in the XMPP protocol.<P><DL></DL></DL><HR><A NAME="unexpected_request"><!-- --></A><H3>unexpected_request</H3><PRE>public static final <A HREF="../../../org/xmpp/packet/PacketError.Condition.html" title="enum in org.xmpp.packet">PacketError.Condition</A> <B>unexpected_request</B></PRE><DL><DD>The recipient or server understood the request but was not expecting it at this time (e.g., the request was out of order); the associated error type SHOULD be "wait".<P><DL></DL></DL><!-- ============ METHOD DETAIL ========== --><A NAME="method_detail"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"><B>Method Detail</B></FONT></TH></TR></TABLE><A NAME="values()"><!-- --></A><H3>values</H3><PRE>public static final <A HREF="../../../org/xmpp/packet/PacketError.Condition.html" title="enum in org.xmpp.packet">PacketError.Condition</A>[] <B>values</B>()</PRE><DL><DD>Returns an array containing the constants of this enum type, inthe order they're declared. This method may be used to iterateover the constants as follows:<pre>for(PacketError.Condition c : PacketError.Condition.values()) System.out.println(c);</pre><P><DD><DL><DT><B>Returns:</B><DD>an array containing the constants of this enum type, inthe order they're declared</DL></DD></DL><HR><A NAME="valueOf(java.lang.String)"><!-- --></A><H3>valueOf</H3><PRE>public static <A HREF="../../../org/xmpp/packet/PacketError.Condition.html" title="enum in org.xmpp.packet">PacketError.Condition</A> <B>valueOf</B>(<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> name)</PRE><DL><DD>Returns the enum constant of this type with the specified name.The string must match <I>exactly</I> an identifier used to declare anenum constant in this type. (Extraneous whitespace characters are not permitted.)<P><DD><DL><DT><B>Parameters:</B><DD><CODE>name</CODE> - the name of the enum constant to be returned.<DT><B>Returns:</B><DD>the enum constant with the specified name<DT><B>Throws:</B><DD><CODE><A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/IllegalArgumentException.html" title="class or interface in java.lang">IllegalArgumentException</A></CODE> - if this enum type has no constantwith the specified name</DL></DD></DL><HR><A NAME="fromXMPP(java.lang.String)"><!-- --></A><H3>fromXMPP</H3><PRE>public static <A HREF="../../../org/xmpp/packet/PacketError.Condition.html" title="enum in org.xmpp.packet">PacketError.Condition</A> <B>fromXMPP</B>(<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> condition)</PRE><DL><DD>Converts a String value into its Condition representation.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>condition</CODE> - the String value.<DT><B>Returns:</B><DD>the condition corresponding to the String.</DL></DD></DL><HR><A NAME="fromLegacyCode(int)"><!-- --></A><H3>fromLegacyCode</H3><PRE>public static <A HREF="../../../org/xmpp/packet/PacketError.Condition.html" title="enum in org.xmpp.packet">PacketError.Condition</A> <B>fromLegacyCode</B>(int code)</PRE><DL><DD><DL></DL></DD></DL><HR><A NAME="getDefaultType()"><!-- --></A><H3>getDefaultType</H3><PRE>public <A HREF="../../../org/xmpp/packet/PacketError.Type.html" title="enum in org.xmpp.packet">PacketError.Type</A> <B>getDefaultType</B>()</PRE><DL><DD>Returns the default <A HREF="../../../org/xmpp/packet/PacketError.Type.html" title="enum in org.xmpp.packet"><CODE>PacketError.Type</CODE></A> associated with this condition. Each error condition has an error type that it is usually associated with.<P><DD><DL><DT><B>Returns:</B><DD>the default error type.</DL></DD></DL><HR><A NAME="getLegacyCode()"><!-- --></A><H3>getLegacyCode</H3><PRE>public int <B>getLegacyCode</B>()</PRE><DL><DD>Returns the legacy error code associated with the error. Error code mappings are based on <a href="http://www.jabber.org/jeps/jep-0086.html">JEP-0086</a>. Support for legacy error codes is necessary since many "Jabber" clients do not understand XMPP error codes. The <A HREF="../../../org/xmpp/packet/PacketError.Condition.html#fromLegacyCode(int)"><CODE>fromLegacyCode(int)</CODE></A> method will convert numeric error codes into Conditions.<P><DD><DL><DT><B>Returns:</B><DD>the legacy error code.</DL></DD></DL><HR><A NAME="toXMPP()"><!-- --></A><H3>toXMPP</H3><PRE>public <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> <B>toXMPP</B>()</PRE><DL><DD>Returns the error code as a valid XMPP error code string.<P><DD><DL><DT><B>Returns:</B><DD>the XMPP error code value.</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=2 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>Openfire 3.6.0a Javadoc</b></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../org/xmpp/packet/PacketError.html" title="class in org.xmpp.packet"><B>PREV CLASS</B></A> <A HREF="../../../org/xmpp/packet/PacketError.Type.html" title="enum in org.xmpp.packet"><B>NEXT CLASS</B></A></FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../index.html?org/xmpp/packet/PacketError.Condition.html" target="_top"><B>FRAMES</B></A> <A HREF="PacketError.Condition.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 | <A HREF="#enum_constant_summary">ENUM CONSTANTS</A> | FIELD | <A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL: <A HREF="#enum_constant_detail">ENUM CONSTANTS</A> | FIELD | <A HREF="#method_detail">METHOD</A></FONT></TD></TR></TABLE><A NAME="skip-navbar_bottom"></A><!-- ======== END OF BOTTOM NAVBAR ======= --><HR><i>Copyright © 2003-2008 Jive Software.</i></BODY></HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -