Enum InBandByteStream.Open.StanzaType
- java.lang.Object
-
- java.lang.Enum<InBandByteStream.Open.StanzaType>
-
- rocks.xmpp.extensions.bytestreams.ibb.model.InBandByteStream.Open.StanzaType
-
- All Implemented Interfaces:
Serializable
,Comparable<InBandByteStream.Open.StanzaType>
- Enclosing class:
- InBandByteStream.Open
public static enum InBandByteStream.Open.StanzaType extends Enum<InBandByteStream.Open.StanzaType>
The stanza type to be used for IBB.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static InBandByteStream.Open.StanzaType
valueOf(String name)
Returns the enum constant of this type with the specified name.static InBandByteStream.Open.StanzaType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
IQ
public static final InBandByteStream.Open.StanzaType IQ
IQ stanzas are used (default)
-
MESSAGE
public static final InBandByteStream.Open.StanzaType MESSAGE
Message stanzas are used.
-
-
Method Detail
-
values
public static InBandByteStream.Open.StanzaType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (InBandByteStream.Open.StanzaType c : InBandByteStream.Open.StanzaType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static InBandByteStream.Open.StanzaType valueOf(String name)
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
-
-