📄 streamerror.condition.html
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><!--NewPage--><HTML><HEAD><!-- Generated by javadoc (build 1.5.0_15) on Thu Aug 28 21:12:49 PDT 2008 --><TITLE>StreamError.Condition (Openfire 3.6.0a Javadoc)</TITLE><META NAME="keywords" CONTENT="org.xmpp.packet.StreamError.Condition class"><LINK REL ="stylesheet" TYPE="text/css" HREF="../../../stylesheet.css" TITLE="Style"><SCRIPT type="text/javascript">function windowTitle(){ parent.document.title="StreamError.Condition (Openfire 3.6.0a Javadoc)";}</SCRIPT><NOSCRIPT></NOSCRIPT></HEAD><BODY BGCOLOR="white" onload="windowTitle();"><!-- ========= START OF TOP NAVBAR ======= --><A NAME="navbar_top"><!-- --></A><A HREF="#skip-navbar_top" 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_top_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/StreamError.html" title="class in org.xmpp.packet"><B>PREV CLASS</B></A> NEXT CLASS</FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../index.html?org/xmpp/packet/StreamError.Condition.html" target="_top"><B>FRAMES</B></A> <A HREF="StreamError.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_top"></A><!-- ========= END OF TOP NAVBAR ========= --><HR><!-- ======== START OF CLASS DATA ======== --><H2><FONT SIZE="-1">org.xmpp.packet</FONT><BR>Enum StreamError.Condition</H2><PRE><A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html" title="class or interface in java.lang">java.lang.Object</A> <IMG SRC="../../../resources/inherit.gif" ALT="extended by "><A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Enum.html" title="class or interface in java.lang">java.lang.Enum</A><<A HREF="../../../org/xmpp/packet/StreamError.Condition.html" title="enum in org.xmpp.packet">StreamError.Condition</A>> <IMG SRC="../../../resources/inherit.gif" ALT="extended by "><B>org.xmpp.packet.StreamError.Condition</B></PRE><DL><DT><B>All Implemented Interfaces:</B> <DD><A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/io/Serializable.html" title="class or interface in java.io">Serializable</A>, <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Comparable.html" title="class or interface in java.lang">Comparable</A><<A HREF="../../../org/xmpp/packet/StreamError.Condition.html" title="enum in org.xmpp.packet">StreamError.Condition</A>></DD></DL><DL><DT><B>Enclosing class:</B><DD><A HREF="../../../org/xmpp/packet/StreamError.html" title="class in org.xmpp.packet">StreamError</A></DD></DL><HR><DL><DT><PRE>public static enum <B>StreamError.Condition</B><DT>extends <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Enum.html" title="class or interface in java.lang">Enum</A><<A HREF="../../../org/xmpp/packet/StreamError.Condition.html" title="enum in org.xmpp.packet">StreamError.Condition</A>></DL></PRE><P>Type-safe enumeration for the error condition.<p> Implementation note: XMPP error conditions use "-" characters in their names such as "bad-request". Because "-" characters are not valid identifier parts in Java, they have been converted to "_" characters in the enumeration names, such as <tt>bad_request</tt>. The <A HREF="../../../org/xmpp/packet/StreamError.Condition.html#toXMPP()"><CODE>toXMPP()</CODE></A> and <A HREF="../../../org/xmpp/packet/StreamError.Condition.html#fromXMPP(java.lang.String)"><CODE>fromXMPP(String)</CODE></A> methods can be used to convert between the enumertation values and XMPP error code strings.<P><P><HR><P><!-- =========== ENUM CONSTANT SUMMARY =========== --><A NAME="enum_constant_summary"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"><B>Enum Constant Summary</B></FONT></TH></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><B><A HREF="../../../org/xmpp/packet/StreamError.Condition.html#bad_format">bad_format</A></B></CODE><BR> The entity has sent XML that cannot be processed; this error MAY be used instead of the more specific XML-related errors, such as <bad-namespace-prefix/>, <invalid-xml/>, <restricted-xml/>, <unsupported-encoding/>, and <xml-not-well-formed/>, although the more specific errors are preferred.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><B><A HREF="../../../org/xmpp/packet/StreamError.Condition.html#bad_namespace_prefix">bad_namespace_prefix</A></B></CODE><BR> The entity has sent a namespace prefix that is unsupported, or has sent no namespace prefix on an element that requires such a prefix.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><B><A HREF="../../../org/xmpp/packet/StreamError.Condition.html#conflict">conflict</A></B></CODE><BR> The server is closing the active stream for this entity because a new stream has been initiated that conflicts with the existing stream.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><B><A HREF="../../../org/xmpp/packet/StreamError.Condition.html#connection_timeout">connection_timeout</A></B></CODE><BR> The entity has not generated any traffic over the stream for some period of time (configurable according to a local service policy).</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><B><A HREF="../../../org/xmpp/packet/StreamError.Condition.html#host_gone">host_gone</A></B></CODE><BR> The value of the 'to' attribute provided by the initiating entity in the stream header corresponds to a hostname that is no longer hosted by the server.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><B><A HREF="../../../org/xmpp/packet/StreamError.Condition.html#host_unknown">host_unknown</A></B></CODE><BR> The value of the 'to' attribute provided by the initiating entity in the stream header does not correspond to a hostname that is hosted by the server.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><B><A HREF="../../../org/xmpp/packet/StreamError.Condition.html#improper_addressing">improper_addressing</A></B></CODE><BR> A stanza sent between two servers lacks a 'to' or 'from' attribute (or the attribute has no value).</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><B><A HREF="../../../org/xmpp/packet/StreamError.Condition.html#internal_server_error">internal_server_error</A></B></CODE><BR> The server has experienced a misconfiguration or an otherwise-undefined internal error that prevents it from servicing the stream.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><B><A HREF="../../../org/xmpp/packet/StreamError.Condition.html#invalid_from">invalid_from</A></B></CODE><BR> The JID or hostname provided in a 'from' address does not match an authorized JID or validated domain negotiated between servers via SASL or dialback, or between a client and a server via authentication and resource binding.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><B><A HREF="../../../org/xmpp/packet/StreamError.Condition.html#invalid_id">invalid_id</A></B></CODE><BR> The stream ID or dialback ID is invalid or does not match an ID previously provided.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><B><A HREF="../../../org/xmpp/packet/StreamError.Condition.html#invalid_namespace">invalid_namespace</A></B></CODE><BR> the streams namespace name is something other than "http://etherx.jabber.org/streams" or the dialback namespace name is something other than "jabber:server:dialback".</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><B><A HREF="../../../org/xmpp/packet/StreamError.Condition.html#invalid_xml">invalid_xml</A></B></CODE><BR> The entity has sent invalid XML over the stream to a server that performs validation.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><B><A HREF="../../../org/xmpp/packet/StreamError.Condition.html#not_authorized">not_authorized</A></B></CODE><BR> The entity has attempted to send data before the stream has been authenticated, or otherwise is not authorized to perform an action related to stream negotiation; the receiving entity MUST NOT process the offending stanza before sending the stream error.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><B><A HREF="../../../org/xmpp/packet/StreamError.Condition.html#policy_violation">policy_violation</A></B></CODE><BR> The entity has violated some local service policy; the server MAY choose to specify the policy in the <text/> element or an application-specific condition element.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><B><A HREF="../../../org/xmpp/packet/StreamError.Condition.html#remote_connection_failed">remote_connection_failed</A></B></CODE><BR> The server is unable to properly connect to a remote entity that is required for authentication or authorization.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><B><A HREF="../../../org/xmpp/packet/StreamError.Condition.html#resource_constraint">resource_constraint</A></B></CODE><BR> The server lacks the system resources necessary to service the stream.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><B><A HREF="../../../org/xmpp/packet/StreamError.Condition.html#restricted_xml">restricted_xml</A></B></CODE><BR> The entity has attempted to send restricted XML features such as a comment, processing instruction, DTD, entity reference, or unescaped character.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><B><A HREF="../../../org/xmpp/packet/StreamError.Condition.html#see_other_host">see_other_host</A></B></CODE><BR> The server will not provide service to the initiating entity but is redirecting traffic to another host; the server SHOULD specify the alternate hostname or IP address (which MUST be a valid domain identifier) as the XML character data of the <see-other-host/> element.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><B><A HREF="../../../org/xmpp/packet/StreamError.Condition.html#system_shutdown">system_shutdown</A></B></CODE><BR> The server is being shut down and all active streams are being closed.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><B><A HREF="../../../org/xmpp/packet/StreamError.Condition.html#undefined_condition">undefined_condition</A></B></CODE><BR> The error condition is not one of those defined by the other conditions in this list; this error condition SHOULD be used only in conjunction with an application-specific condition.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><B><A HREF="../../../org/xmpp/packet/StreamError.Condition.html#unsupported_encoding">unsupported_encoding</A></B></CODE><BR> The initiating entity has encoded the stream in an encoding that is not
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -