com.sun.grizzly.websockets
Class WebSocketEngine

java.lang.Object
  extended by com.sun.grizzly.websockets.WebSocketEngine

public class WebSocketEngine
extends Object


Field Summary
static String CLIENT_WS_ORIGIN_HEADER
           
static boolean constrainApplications
           
static int DEFAULT_TIMEOUT
           
static int INITIAL_BUFFER_SIZE
           
static String SEC_WS_KEY1_HEADER
           
static String SEC_WS_KEY2_HEADER
           
static String SEC_WS_PROTOCOL_HEADER
           
static String SERVER_SEC_WS_LOCATION_HEADER
           
static String SERVER_SEC_WS_ORIGIN_HEADER
           
static String WEBSOCKET
           
 
Method Summary
 WebSocketApplication getApplication(Request request)
           
static WebSocketEngine getEngine()
           
static boolean isWebSocketEnabled()
          Return true is Comet is enabled, e.g.
 void register(String name, WebSocketApplication app)
          Deprecated. 
 void register(WebSocketApplication app)
           
static void setWebSocketEnabled(boolean webSocketEnabled)
           
 void unregister(WebSocketApplication app)
           
 boolean upgrade(AsyncExecutor asyncExecutor)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SEC_WS_PROTOCOL_HEADER

public static final String SEC_WS_PROTOCOL_HEADER
See Also:
Constant Field Values

SEC_WS_KEY1_HEADER

public static final String SEC_WS_KEY1_HEADER
See Also:
Constant Field Values

SEC_WS_KEY2_HEADER

public static final String SEC_WS_KEY2_HEADER
See Also:
Constant Field Values

CLIENT_WS_ORIGIN_HEADER

public static final String CLIENT_WS_ORIGIN_HEADER
See Also:
Constant Field Values

SERVER_SEC_WS_ORIGIN_HEADER

public static final String SERVER_SEC_WS_ORIGIN_HEADER
See Also:
Constant Field Values

SERVER_SEC_WS_LOCATION_HEADER

public static final String SERVER_SEC_WS_LOCATION_HEADER
See Also:
Constant Field Values

WEBSOCKET

public static final String WEBSOCKET
See Also:
Constant Field Values

INITIAL_BUFFER_SIZE

public static final int INITIAL_BUFFER_SIZE
See Also:
Constant Field Values

DEFAULT_TIMEOUT

public static final int DEFAULT_TIMEOUT

constrainApplications

public static final boolean constrainApplications
Method Detail

isWebSocketEnabled

public static boolean isWebSocketEnabled()
Return true is Comet is enabled, e.g. SelectorThread.setEnableAsyncExecution(boolean) has been set to true

Returns:

setWebSocketEnabled

public static void setWebSocketEnabled(boolean webSocketEnabled)

getEngine

public static WebSocketEngine getEngine()

getApplication

public WebSocketApplication getApplication(Request request)

upgrade

public boolean upgrade(AsyncExecutor asyncExecutor)

register

@Deprecated
public void register(String name,
                                WebSocketApplication app)
Deprecated. 


register

public void register(WebSocketApplication app)

unregister

public void unregister(WebSocketApplication app)


Copyright © 2011 Oracle Corpration. All Rights Reserved.