org.granite.gravity.glassfish
Class GlassFishWebSocketApplication

java.lang.Object
  extended by com.sun.grizzly.websockets.WebSocketAdapter
      extended by com.sun.grizzly.websockets.WebSocketApplication
          extended by org.granite.gravity.glassfish.GlassFishWebSocketApplication
All Implemented Interfaces:
com.sun.grizzly.websockets.WebSocketListener

public class GlassFishWebSocketApplication
extends com.sun.grizzly.websockets.WebSocketApplication


Constructor Summary
GlassFishWebSocketApplication(ServletContext servletContext, Gravity gravity, String mapping)
           
 
Method Summary
 List<String> getSupportedProtocols(List<String> subProtocols)
           
 boolean isApplicationRequest(com.sun.grizzly.tcp.Request request)
           
 void onConnect(com.sun.grizzly.websockets.WebSocket websocket)
           
 
Methods inherited from class com.sun.grizzly.websockets.WebSocketApplication
add, createWebSocket, getCoreWriterThreads, getMaxWriterThreads, getQueueSizeReceiverDelayingThreshold, getQueueSizeThreadSpawnThreshold, getSupportedExtensions, getWebSockets, helpWriteQueue, isWriterThreadsEnabled, onClose, remove
 
Methods inherited from class com.sun.grizzly.websockets.WebSocketAdapter
onFragment, onFragment, onMessage, onMessage, onPing, onPong
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GlassFishWebSocketApplication

public GlassFishWebSocketApplication(ServletContext servletContext,
                                     Gravity gravity,
                                     String mapping)
Method Detail

getSupportedProtocols

public List<String> getSupportedProtocols(List<String> subProtocols)
Overrides:
getSupportedProtocols in class com.sun.grizzly.websockets.WebSocketApplication

isApplicationRequest

public boolean isApplicationRequest(com.sun.grizzly.tcp.Request request)
Overrides:
isApplicationRequest in class com.sun.grizzly.websockets.WebSocketApplication

onConnect

public void onConnect(com.sun.grizzly.websockets.WebSocket websocket)
Specified by:
onConnect in interface com.sun.grizzly.websockets.WebSocketListener
Overrides:
onConnect in class com.sun.grizzly.websockets.WebSocketApplication