Enum WebSocketHandler.WebSocketMessageType
- java.lang.Object
-
- java.lang.Enum<WebSocketHandler.WebSocketMessageType>
-
- com.microsoft.azure.proton.transport.ws.WebSocketHandler.WebSocketMessageType
-
- All Implemented Interfaces:
Serializable,Comparable<WebSocketHandler.WebSocketMessageType>
- Enclosing interface:
- WebSocketHandler
public static enum WebSocketHandler.WebSocketMessageType extends Enum<WebSocketHandler.WebSocketMessageType>
States when parsing a frame.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description WEB_SOCKET_MESSAGE_TYPE_AMQPWEB_SOCKET_MESSAGE_TYPE_CHUNKWEB_SOCKET_MESSAGE_TYPE_CLOSEWEB_SOCKET_MESSAGE_TYPE_HEADER_CHUNKWEB_SOCKET_MESSAGE_TYPE_PINGWEB_SOCKET_MESSAGE_TYPE_UNKNOWN
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static WebSocketHandler.WebSocketMessageTypevalueOf(String name)Returns the enum constant of this type with the specified name.static WebSocketHandler.WebSocketMessageType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
WEB_SOCKET_MESSAGE_TYPE_UNKNOWN
public static final WebSocketHandler.WebSocketMessageType WEB_SOCKET_MESSAGE_TYPE_UNKNOWN
-
WEB_SOCKET_MESSAGE_TYPE_CHUNK
public static final WebSocketHandler.WebSocketMessageType WEB_SOCKET_MESSAGE_TYPE_CHUNK
-
WEB_SOCKET_MESSAGE_TYPE_HEADER_CHUNK
public static final WebSocketHandler.WebSocketMessageType WEB_SOCKET_MESSAGE_TYPE_HEADER_CHUNK
-
WEB_SOCKET_MESSAGE_TYPE_AMQP
public static final WebSocketHandler.WebSocketMessageType WEB_SOCKET_MESSAGE_TYPE_AMQP
-
WEB_SOCKET_MESSAGE_TYPE_PING
public static final WebSocketHandler.WebSocketMessageType WEB_SOCKET_MESSAGE_TYPE_PING
-
WEB_SOCKET_MESSAGE_TYPE_CLOSE
public static final WebSocketHandler.WebSocketMessageType WEB_SOCKET_MESSAGE_TYPE_CLOSE
-
-
Method Detail
-
values
public static WebSocketHandler.WebSocketMessageType[] 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 (WebSocketHandler.WebSocketMessageType c : WebSocketHandler.WebSocketMessageType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static WebSocketHandler.WebSocketMessageType 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
-
-