org.atmosphere.container
Class GlassFishWebSocketHandler
java.lang.Object
com.sun.grizzly.websockets.WebSocketAdapter
com.sun.grizzly.websockets.WebSocketApplication
org.atmosphere.container.GlassFishWebSocketHandler
- All Implemented Interfaces:
- com.sun.grizzly.websockets.WebSocketListener
public class GlassFishWebSocketHandler
- extends com.sun.grizzly.websockets.WebSocketApplication
Glassfish 3.2.x WebSocket support.
|
Method Summary |
boolean |
isApplicationRequest(com.sun.grizzly.tcp.Request request)
|
void |
onClose(com.sun.grizzly.websockets.WebSocket w,
com.sun.grizzly.websockets.DataFrame df)
|
void |
onConnect(com.sun.grizzly.websockets.WebSocket w)
|
void |
onFragment(com.sun.grizzly.websockets.WebSocket w,
byte[] bytes,
boolean last)
|
void |
onFragment(com.sun.grizzly.websockets.WebSocket w,
String text,
boolean last)
|
void |
onMessage(com.sun.grizzly.websockets.WebSocket w,
byte[] bytes)
|
void |
onMessage(com.sun.grizzly.websockets.WebSocket w,
String text)
|
void |
onPing(com.sun.grizzly.websockets.WebSocket w,
byte[] bytes)
|
void |
onPong(com.sun.grizzly.websockets.WebSocket w,
byte[] bytes)
|
| Methods inherited from class com.sun.grizzly.websockets.WebSocketApplication |
add, createWebSocket, getSupportedExtensions, getSupportedProtocols, getWebSockets, remove |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GlassFishWebSocketHandler
public GlassFishWebSocketHandler(AtmosphereConfig config)
onConnect
public void onConnect(com.sun.grizzly.websockets.WebSocket w)
- Specified by:
onConnect in interface com.sun.grizzly.websockets.WebSocketListener- Overrides:
onConnect in class com.sun.grizzly.websockets.WebSocketApplication
isApplicationRequest
public boolean isApplicationRequest(com.sun.grizzly.tcp.Request request)
- Specified by:
isApplicationRequest in class com.sun.grizzly.websockets.WebSocketApplication
onClose
public void onClose(com.sun.grizzly.websockets.WebSocket w,
com.sun.grizzly.websockets.DataFrame df)
- Specified by:
onClose in interface com.sun.grizzly.websockets.WebSocketListener- Overrides:
onClose in class com.sun.grizzly.websockets.WebSocketApplication
onMessage
public void onMessage(com.sun.grizzly.websockets.WebSocket w,
String text)
- Specified by:
onMessage in interface com.sun.grizzly.websockets.WebSocketListener- Overrides:
onMessage in class com.sun.grizzly.websockets.WebSocketAdapter
onMessage
public void onMessage(com.sun.grizzly.websockets.WebSocket w,
byte[] bytes)
- Specified by:
onMessage in interface com.sun.grizzly.websockets.WebSocketListener- Overrides:
onMessage in class com.sun.grizzly.websockets.WebSocketAdapter
onPing
public void onPing(com.sun.grizzly.websockets.WebSocket w,
byte[] bytes)
- Specified by:
onPing in interface com.sun.grizzly.websockets.WebSocketListener- Overrides:
onPing in class com.sun.grizzly.websockets.WebSocketAdapter
onPong
public void onPong(com.sun.grizzly.websockets.WebSocket w,
byte[] bytes)
- Specified by:
onPong in interface com.sun.grizzly.websockets.WebSocketListener- Overrides:
onPong in class com.sun.grizzly.websockets.WebSocketAdapter
onFragment
public void onFragment(com.sun.grizzly.websockets.WebSocket w,
byte[] bytes,
boolean last)
- Specified by:
onFragment in interface com.sun.grizzly.websockets.WebSocketListener- Overrides:
onFragment in class com.sun.grizzly.websockets.WebSocketAdapter
onFragment
public void onFragment(com.sun.grizzly.websockets.WebSocket w,
String text,
boolean last)
- Specified by:
onFragment in interface com.sun.grizzly.websockets.WebSocketListener- Overrides:
onFragment in class com.sun.grizzly.websockets.WebSocketAdapter
Copyright © 2012. All Rights Reserved.