Package org.jivesoftware.smack
Enum XMPPConnection.FromMode
- All Implemented Interfaces:
Serializable
,Comparable<XMPPConnection.FromMode>
- Enclosing interface:
- XMPPConnection
-
Enum Constant Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic XMPPConnection.FromMode
Returns the enum constant of this type with the specified name.static XMPPConnection.FromMode[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
UNCHANGED
Leave the 'from' attribute unchanged. This is the behavior of Smack < 4.0 -
OMITTED
Omit the 'from' attribute. According to RFC 6120 8.1.2.1 1. XMPP servers "MUST (...) override the 'from' attribute specified by the client". It is therefore safe to specify FromMode.OMITTED here. -
USER
Set the from to the clients full JID. This is usually not required.
-
-
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
-