Package org.jivesoftware.smackx.receipts
Enum DeliveryReceiptManager.AutoReceiptMode
- java.lang.Object
-
- java.lang.Enum<DeliveryReceiptManager.AutoReceiptMode>
-
- org.jivesoftware.smackx.receipts.DeliveryReceiptManager.AutoReceiptMode
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<DeliveryReceiptManager.AutoReceiptMode>
- Enclosing class:
- DeliveryReceiptManager
public static enum DeliveryReceiptManager.AutoReceiptMode extends java.lang.Enum<DeliveryReceiptManager.AutoReceiptMode>
Specifies when incoming message delivery receipt requests should be automatically acknowledged with an receipt.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description always
Always send delivery receipts.disabled
Never send deliver receipts.ifIsSubscribed
Only send delivery receipts if the requester is subscribed to our presence.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static DeliveryReceiptManager.AutoReceiptMode
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static DeliveryReceiptManager.AutoReceiptMode[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
disabled
public static final DeliveryReceiptManager.AutoReceiptMode disabled
Never send deliver receipts.
-
ifIsSubscribed
public static final DeliveryReceiptManager.AutoReceiptMode ifIsSubscribed
Only send delivery receipts if the requester is subscribed to our presence.
-
always
public static final DeliveryReceiptManager.AutoReceiptMode always
Always send delivery receipts. Warning: this may causes presence leaks. See XEP-0184: Message Delivery Receipts ยง 8. Security Considerations
-
-
Method Detail
-
values
public static DeliveryReceiptManager.AutoReceiptMode[] 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 (DeliveryReceiptManager.AutoReceiptMode c : DeliveryReceiptManager.AutoReceiptMode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static DeliveryReceiptManager.AutoReceiptMode 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 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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
-