Enum ComponentRejectedEvent.RejectType
-
- All Implemented Interfaces:
Serializable
,Comparable<ComponentRejectedEvent.RejectType>
- Enclosing class:
- ComponentRejectedEvent
public static enum ComponentRejectedEvent.RejectType extends Enum<ComponentRejectedEvent.RejectType>
Enum used to distinguish local and remote rejects
-
-
Enum Constant Summary
Enum Constants Enum Constant Description LOCAL
This event represents a TC-L-REJECT notification caused by the local stack rejecting a non-reject component received from the remote peer.REMOTE
This event represents a TC-U-REJECT or TC-R-REJECT notification caused by a reject component being received from the remote peer.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ComponentRejectedEvent.RejectType
valueOf(String name)
Returns the enum constant of this type with the specified name.static ComponentRejectedEvent.RejectType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
REMOTE
public static final ComponentRejectedEvent.RejectType REMOTE
This event represents a TC-U-REJECT or TC-R-REJECT notification caused by a reject component being received from the remote peer.
-
LOCAL
public static final ComponentRejectedEvent.RejectType LOCAL
This event represents a TC-L-REJECT notification caused by the local stack rejecting a non-reject component received from the remote peer.
-
-
Method Detail
-
values
public static ComponentRejectedEvent.RejectType[] 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 (ComponentRejectedEvent.RejectType c : ComponentRejectedEvent.RejectType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ComponentRejectedEvent.RejectType 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
-
-