Package org.glassfish.tyrus.spi
Enum WriterInfo.MessageType
- java.lang.Object
-
- java.lang.Enum<WriterInfo.MessageType>
-
- org.glassfish.tyrus.spi.WriterInfo.MessageType
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<WriterInfo.MessageType>
- Enclosing class:
- WriterInfo
public static enum WriterInfo.MessageType extends java.lang.Enum<WriterInfo.MessageType>
Possible WebSocket Message Types.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BINARYBinary type.BINARY_CONTINUATIONContinuation binary type.CLOSEClose type.OBJECTObject type.PINGPing type.PONGPong type.TEXTText type.TEXT_CONTINUATIONContinuation text type.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static WriterInfo.MessageTypevalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static WriterInfo.MessageType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
TEXT
public static final WriterInfo.MessageType TEXT
Text type.
-
TEXT_CONTINUATION
public static final WriterInfo.MessageType TEXT_CONTINUATION
Continuation text type.
-
BINARY
public static final WriterInfo.MessageType BINARY
Binary type.
-
BINARY_CONTINUATION
public static final WriterInfo.MessageType BINARY_CONTINUATION
Continuation binary type.
-
OBJECT
public static final WriterInfo.MessageType OBJECT
Object type.
-
PING
public static final WriterInfo.MessageType PING
Ping type.
-
PONG
public static final WriterInfo.MessageType PONG
Pong type.
-
CLOSE
public static final WriterInfo.MessageType CLOSE
Close type.
-
-
Method Detail
-
values
public static WriterInfo.MessageType[] 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 (WriterInfo.MessageType c : WriterInfo.MessageType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static WriterInfo.MessageType 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
-
-