Errai 3.0.1-SNAPSHOT

org.jboss.websockets.oio.internal
Enum WebSocketHeaders

java.lang.Object
  extended by java.lang.Enum<WebSocketHeaders>
      extended by org.jboss.websockets.oio.internal.WebSocketHeaders
All Implemented Interfaces:
Serializable, Comparable<WebSocketHeaders>

public enum WebSocketHeaders
extends Enum<WebSocketHeaders>

Author:
Mike Brock

Enum Constant Summary
ORIGIN
           
SEC_WEBSOCKET_ACCEPT
           
SEC_WEBSOCKET_KEY
           
SEC_WEBSOCKET_KEY1
           
SEC_WEBSOCKET_KEY2
           
SEC_WEBSOCKET_LOCATION
           
SEC_WEBSOCKET_ORIGIN
           
SEC_WEBSOCKET_PROTOCOL
           
SEC_WEBSOCKET_VERSION
           
 
Method Summary
 void copy(HttpRequestBridge from, HttpResponseBridge response)
           
 String get(HttpRequestBridge request)
           
 String get(HttpResponseBridge response)
           
 String getCanonicalHeaderName()
           
 boolean isIn(HttpRequestBridge request)
           
 boolean isIn(HttpResponseBridge response)
           
 boolean matches(HttpRequestBridge request, String matchTo)
           
 boolean matches(HttpResponseBridge request, String matchTo)
           
 void set(HttpResponseBridge response, String value)
           
static WebSocketHeaders valueOf(String name)
          Returns the enum constant of this type with the specified name.
static WebSocketHeaders[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

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
Method Detail

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)

Errai 3.0.1-SNAPSHOT

Copyright © 2013-2014 JBoss, a division of Red Hat. All Rights Reserved.