Enum XMPPConnection.FromMode

java.lang.Object
java.lang.Enum<XMPPConnection.FromMode>
org.jivesoftware.smack.XMPPConnection.FromMode
All Implemented Interfaces:
Serializable, Comparable<XMPPConnection.FromMode>
Enclosing interface:
XMPPConnection

  • Enum Constant Details

    • UNCHANGED

      public static final XMPPConnection.FromMode UNCHANGED
      Leave the 'from' attribute unchanged. This is the behavior of Smack < 4.0
    • OMITTED

      public static final XMPPConnection.FromMode 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

      public static final XMPPConnection.FromMode USER
      Set the from to the clients full JID. This is usually not required.
  • Method Details

    • values

      public static XMPPConnection.FromMode[] 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

      public static XMPPConnection.FromMode 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 name
      NullPointerException - if the argument is null