org.jboss.websockets.oio.internal
Enum WebSocketHeaders
java.lang.Object
java.lang.Enum<WebSocketHeaders>
org.jboss.websockets.oio.internal.WebSocketHeaders
- All Implemented Interfaces:
- Serializable, Comparable<WebSocketHeaders>
public enum WebSocketHeaders
- extends Enum<WebSocketHeaders>
- Author:
- Mike Brock
SEC_WEBSOCKET_KEY
public static final WebSocketHeaders SEC_WEBSOCKET_KEY
SEC_WEBSOCKET_KEY1
public static final WebSocketHeaders SEC_WEBSOCKET_KEY1
SEC_WEBSOCKET_KEY2
public static final WebSocketHeaders SEC_WEBSOCKET_KEY2
SEC_WEBSOCKET_LOCATION
public static final WebSocketHeaders SEC_WEBSOCKET_LOCATION
ORIGIN
public static final WebSocketHeaders ORIGIN
SEC_WEBSOCKET_ORIGIN
public static final WebSocketHeaders SEC_WEBSOCKET_ORIGIN
SEC_WEBSOCKET_PROTOCOL
public static final WebSocketHeaders SEC_WEBSOCKET_PROTOCOL
SEC_WEBSOCKET_VERSION
public static final WebSocketHeaders SEC_WEBSOCKET_VERSION
SEC_WEBSOCKET_ACCEPT
public static final WebSocketHeaders SEC_WEBSOCKET_ACCEPT
values
public static WebSocketHeaders[] 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 (WebSocketHeaders c : WebSocketHeaders.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static WebSocketHeaders 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 name
NullPointerException
- if the argument is null
getCanonicalHeaderName
public final String getCanonicalHeaderName()
get
public final String get(HttpRequestBridge request)
get
public final String get(HttpResponseBridge response)
isIn
public final boolean isIn(HttpRequestBridge request)
isIn
public final boolean isIn(HttpResponseBridge response)
copy
public final void copy(HttpRequestBridge from,
HttpResponseBridge response)
set
public final void set(HttpResponseBridge response,
String value)
matches
public final boolean matches(HttpRequestBridge request,
String matchTo)
matches
public final boolean matches(HttpResponseBridge request,
String matchTo)
Copyright © 2013-2014 JBoss, a division of Red Hat. All Rights Reserved.