|
Wildfire 3.2.4 Javadoc | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Object java.lang.Enum<PacketError.Type> org.xmpp.packet.PacketError.Type
public static enum PacketError.Type
Error type. Valid types are:
Error.Type.cancel
-- do not retry (the error is unrecoverable).
Error.Type.continue_processing
-- proceed
(the condition was only a warning). Equivalent to the XMPP error type
"continue".
Error.Type.modify
-- retry after changing the data sent.
Eror.Type.auth
-- retry after providing credentials.
Error.Type.wait
-- retry after waiting (the error is temporary).
toXMPP()
and fromXMPP(String)
methods can be used to convert
between the enumertation values and XMPP error type strings.
Enum Constant Summary | |
---|---|
auth
Retry after providing credentials. |
|
cancel
Do not retry (the error is unrecoverable). |
|
continue_processing
Proceed (the condition was only a warning). |
|
modify
Retry after changing the data sent. |
|
wait
Retry after waiting (the error is temporary). |
Method Summary | |
---|---|
static PacketError.Type |
fromXMPP(String type)
Converts a String value into its Type representation. |
String |
toXMPP()
Returns the error code as a valid XMPP error code string. |
static PacketError.Type |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static PacketError.Type[] |
values()
Returns an array containing the constants of this enum type, in the order they're declared. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final PacketError.Type cancel
public static final PacketError.Type continue_processing
public static final PacketError.Type modify
public static final PacketError.Type auth
public static final PacketError.Type wait
Method Detail |
---|
public static final PacketError.Type[] values()
for(PacketError.Type c : PacketError.Type.values()) System.out.println(c);
public static PacketError.Type valueOf(String name)
name
- the name of the enum constant to be returned.
IllegalArgumentException
- if this enum type has no constant
with the specified namepublic static PacketError.Type fromXMPP(String type)
type
- the String value.
public String toXMPP()
|
Wildfire 3.2.4 Javadoc | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |