Package org.xmpp.packet
Enum IQ.Type
- All Implemented Interfaces:
Serializable,Comparable<IQ.Type>,java.lang.constant.Constable
- Enclosing class:
- IQ
Type-safe enumeration to represent the type of the IQ packet. The types are:
- IQ.Type.get -- the IQ is a request for information or requirements.
- IQ.Type.set -- the IQ provides required data, sets new values, or replaces existing values.
- IQ.Type.result -- the IQ is a response to a successful get or set request.
- IQ.Type.error -- an error has occurred regarding processing or delivery of a previously-sent get or set.
IQ.Type.get or IQ.Type.set is received the response
must be IQ.Type.result or IQ.Type.error. The id of the
originating IQ.Type.get of IQ.Type.set IQ must be preserved
when sending IQ.Type.result or IQ.Type.error.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionAn error has occurred regarding processing or delivery of a previously-sent get or set.The IQ is a request for information or requirements.The IQ is a response to a successful get or set request.The IQ provides required data, sets new values, or replaces existing values. -
Method Summary
-
Enum Constant Details
-
get
The IQ is a request for information or requirements. -
set
The IQ provides required data, sets new values, or replaces existing values. -
result
The IQ is a response to a successful get or set request. -
error
An error has occurred regarding processing or delivery of a previously-sent get or set.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-