Package org.glassfish.tyrus.core.frame
Enum TyrusFrame.FrameType
- java.lang.Object
-
- java.lang.Enum<TyrusFrame.FrameType>
-
- org.glassfish.tyrus.core.frame.TyrusFrame.FrameType
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<TyrusFrame.FrameType>
- Enclosing class:
- TyrusFrame
public static enum TyrusFrame.FrameType extends java.lang.Enum<TyrusFrame.FrameType>
An Enumeration of frame types.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BINARY
Binary frame.BINARY_CONTINUATION
Continuation binary frame.CLOSE
Close frame.PING
Ping frame.PONG
Pong frame.TEXT
Text frame.TEXT_CONTINUATION
Continuation text frame.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static TyrusFrame.FrameType
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static TyrusFrame.FrameType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
TEXT
public static final TyrusFrame.FrameType TEXT
Text frame.- See Also:
TextFrame
-
TEXT_CONTINUATION
public static final TyrusFrame.FrameType TEXT_CONTINUATION
Continuation text frame.- See Also:
TextFrame
-
BINARY
public static final TyrusFrame.FrameType BINARY
Binary frame.- See Also:
BinaryFrame
-
BINARY_CONTINUATION
public static final TyrusFrame.FrameType BINARY_CONTINUATION
Continuation binary frame.- See Also:
BinaryFrame
-
PING
public static final TyrusFrame.FrameType PING
Ping frame.- See Also:
PingFrame
-
PONG
public static final TyrusFrame.FrameType PONG
Pong frame.- See Also:
PongFrame
-
CLOSE
public static final TyrusFrame.FrameType CLOSE
Close frame.- See Also:
CloseFrame
-
-
Method Detail
-
values
public static TyrusFrame.FrameType[] 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 (TyrusFrame.FrameType c : TyrusFrame.FrameType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static TyrusFrame.FrameType 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
-
-