public enum StompCommand extends Enum<StompCommand>
Enum Constant and Description |
---|
ABORT |
ACK |
BEGIN |
COMMIT |
CONNECT |
CONNECTED |
DISCONNECT |
ERROR |
MESSAGE |
NACK |
RECEIPT |
SEND |
STOMP |
SUBSCRIBE |
UNSUBSCRIBE |
Modifier and Type | Method and Description |
---|---|
SimpMessageType |
getMessageType() |
boolean |
isBodyAllowed() |
boolean |
requiresDestination() |
boolean |
requiresSubscriptionId() |
static StompCommand |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static StompCommand[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final StompCommand CONNECT
public static final StompCommand STOMP
public static final StompCommand SEND
public static final StompCommand SUBSCRIBE
public static final StompCommand UNSUBSCRIBE
public static final StompCommand ACK
public static final StompCommand NACK
public static final StompCommand BEGIN
public static final StompCommand COMMIT
public static final StompCommand ABORT
public static final StompCommand DISCONNECT
public static final StompCommand CONNECTED
public static final StompCommand MESSAGE
public static final StompCommand RECEIPT
public static final StompCommand ERROR
public static StompCommand[] values()
for (StompCommand c : StompCommand.values()) System.out.println(c);
public static StompCommand valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic SimpMessageType getMessageType()
public boolean requiresDestination()
public boolean requiresSubscriptionId()
public boolean isBodyAllowed()