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:
Serializable
,Comparable<DeliveryReceiptManager.AutoReceiptMode>
- Enclosing class:
- DeliveryReceiptManager
public static enum DeliveryReceiptManager.AutoReceiptMode
extends Enum<DeliveryReceiptManager.AutoReceiptMode>
Specifies when incoming message delivery receipt requests should be automatically
acknowledged with an receipt.
-
Enum Constant Summary
Enum ConstantDescriptionAlways send delivery receipts.Never send deliver receipts.Only send delivery receipts if the requester is subscribed to our presence. -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this type with the specified name.values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
disabled
Never send deliver receipts. -
ifIsSubscribed
Only send delivery receipts if the requester is subscribed to our presence. -
always
Always send delivery receipts. Warning: this may causes presence leaks. See XEP-0184: Message Delivery Receipts ยง 8. Security Considerations
-
-
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
-