Package io.vertx.ext.stomp.lite.frame
Enum Frame.Command
- java.lang.Object
-
- java.lang.Enum<Frame.Command>
-
- io.vertx.ext.stomp.lite.frame.Frame.Command
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<Frame.Command>
- Enclosing class:
- Frame
public static enum Frame.Command extends java.lang.Enum<Frame.Command>
The list of command defined by the STOMP specification. It also contains aPINGcommand used for heartbeat. It should not be used in frames (as it's not a valid command).
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Frame.CommandvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static Frame.Command[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
CONNECT
public static final Frame.Command CONNECT
-
CONNECTED
public static final Frame.Command CONNECTED
-
STOMP
public static final Frame.Command STOMP
-
SEND
public static final Frame.Command SEND
-
SUBSCRIBE
public static final Frame.Command SUBSCRIBE
-
UNSUBSCRIBE
public static final Frame.Command UNSUBSCRIBE
-
ACK
public static final Frame.Command ACK
-
NACK
public static final Frame.Command NACK
-
BEGIN
public static final Frame.Command BEGIN
-
COMMIT
public static final Frame.Command COMMIT
-
ABORT
public static final Frame.Command ABORT
-
DISCONNECT
public static final Frame.Command DISCONNECT
-
MESSAGE
public static final Frame.Command MESSAGE
-
RECEIPT
public static final Frame.Command RECEIPT
-
ERROR
public static final Frame.Command ERROR
-
PING
public static final Frame.Command PING
-
UNKNOWN
public static final Frame.Command UNKNOWN
-
-
Method Detail
-
values
public static Frame.Command[] 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 (Frame.Command c : Frame.Command.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Frame.Command 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
-
-