org.jivesoftware.smack

Enum XMPPConnection.FromMode

    • Enum Constant Summary

      Enum Constants 
      Enum Constant and Description
      OMITTED
      Omit the 'from' attribute.
      UNCHANGED
      Leave the 'from' attribute unchanged.
      USER
      Set the from to the clients full JID.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and TypeMethod and Description
      static XMPPConnection.FromModevalueOf(java.lang.String name)
      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, inthe order they are declared.
      • Methods inherited from class java.lang.Enum

        clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, wait, wait, wait
    • Enum Constant Detail

      • 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 Detail

      • values

        public static XMPPConnection.FromMode[] values()
        Returns an array containing the constants of this enum type, inthe order they are declared. This method may be used to iterateover the constants as follows:
        for (XMPPConnection.FromMode c : XMPPConnection.FromMode.values())    System.out.println(c);
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static XMPPConnection.FromMode valueOf(java.lang.String name)
        Returns the enum constant of this type with the specified name.The string must match exactly an identifier used to declare anenum 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:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null


NOTHING
NOTHING
Add the Maven Dependecy to your project: maven dependecy for com.amazonaws : aws-java-sdk : 1.3.14