Enum Address.Type
- java.lang.Object
-
- java.lang.Enum<Address.Type>
-
- rocks.xmpp.extensions.address.model.Address.Type
-
- All Implemented Interfaces:
Serializable
,Comparable<Address.Type>
- Enclosing class:
- Address
public static enum Address.Type extends Enum<Address.Type>
The type of the address.- See Also:
- 4.6 'type' attribute
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BCC
These addressees should receive 'blind carbon copies' of the stanza.CC
These addressees are the secondary recipients of the stanza.NOREPLY
This address type contains no actual address information.OFROM
In Multi-User Chat, if the room is non-anonymous, notes the original full JID of the sender.REPLYROOM
This is the JID of a Multi-User Chat (XEP-0045) [5] room to which responses should be sent.REPLYTO
This is the address to which all replies are requested to be sent.TO
These addressees are the primary recipients of the stanza.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Address.Type
valueOf(String name)
Returns the enum constant of this type with the specified name.static Address.Type[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
BCC
public static final Address.Type BCC
These addressees should receive 'blind carbon copies' of the stanza. This means that the server MUST remove these addresses before the stanza is delivered to anyone other than the given bcc addressee or the multicast service of the bcc addressee.- See Also:
- 4.6.3 Address type='bcc'
-
CC
public static final Address.Type CC
These addressees are the secondary recipients of the stanza.- See Also:
- 4.6.2 Address type='cc'
-
NOREPLY
public static final Address.Type NOREPLY
This address type contains no actual address information. Instead, it means that the receiver SHOULD NOT reply to the message. This is useful when broadcasting messages to many receivers.- See Also:
- 4.6.6 Address type='noreply'
-
REPLYROOM
public static final Address.Type REPLYROOM
This is the JID of a Multi-User Chat (XEP-0045) [5] room to which responses should be sent. When a user wants to reply to this stanza, the client SHOULD join this room first. Clients SHOULD respect this request unless an explicit override occurs. There MAY be more than one replyto or replyroom on a stanza, in which case the reply stanza MUST be routed to all of the addresses.- See Also:
- 4.6.5 Address type='replyroom'
-
REPLYTO
public static final Address.Type REPLYTO
This is the address to which all replies are requested to be sent. Clients SHOULD respect this request unless an explicit override occurs. There MAY be more than one replyto or replyroom on a stanza, in which case the reply stanza MUST be routed to all of the addresses.- See Also:
- 4.6.4 Address type='replyto'
-
TO
public static final Address.Type TO
These addressees are the primary recipients of the stanza.- See Also:
- 4.6.1 Address type='to'
-
OFROM
public static final Address.Type OFROM
In Multi-User Chat, if the room is non-anonymous, notes the original full JID of the sender.
-
-
Method Detail
-
values
public static Address.Type[] 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 (Address.Type c : Address.Type.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Address.Type 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 nameNullPointerException
- if the argument is null
-
-