public class GlassFishWebSocketHandler
extends com.sun.grizzly.websockets.WebSocketApplication
Constructor and Description |
---|
GlassFishWebSocketHandler(AtmosphereConfig config) |
Modifier and Type | Method and Description |
---|---|
com.sun.grizzly.websockets.WebSocket |
createWebSocket(com.sun.grizzly.websockets.ProtocolHandler protocolHandler,
com.sun.grizzly.websockets.WebSocketListener... listeners) |
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) |
add, getCoreWriterThreads, getMaxWriterThreads, getQueueSizeReceiverDelayingThreshold, getQueueSizeThreadSpawnThreshold, getSupportedExtensions, getSupportedProtocols, getWebSockets, helpWriteQueue, isWriterThreadsEnabled, remove
public GlassFishWebSocketHandler(AtmosphereConfig config)
public com.sun.grizzly.websockets.WebSocket createWebSocket(com.sun.grizzly.websockets.ProtocolHandler protocolHandler, com.sun.grizzly.websockets.WebSocketListener... listeners)
createWebSocket
in class com.sun.grizzly.websockets.WebSocketApplication
public void onConnect(com.sun.grizzly.websockets.WebSocket w)
onConnect
in interface com.sun.grizzly.websockets.WebSocketListener
onConnect
in class com.sun.grizzly.websockets.WebSocketApplication
public boolean isApplicationRequest(com.sun.grizzly.tcp.Request request)
isApplicationRequest
in class com.sun.grizzly.websockets.WebSocketApplication
public void onClose(com.sun.grizzly.websockets.WebSocket w, com.sun.grizzly.websockets.DataFrame df)
onClose
in interface com.sun.grizzly.websockets.WebSocketListener
onClose
in class com.sun.grizzly.websockets.WebSocketApplication
public void onMessage(com.sun.grizzly.websockets.WebSocket w, String text)
onMessage
in interface com.sun.grizzly.websockets.WebSocketListener
onMessage
in class com.sun.grizzly.websockets.WebSocketAdapter
public void onMessage(com.sun.grizzly.websockets.WebSocket w, byte[] bytes)
onMessage
in interface com.sun.grizzly.websockets.WebSocketListener
onMessage
in class com.sun.grizzly.websockets.WebSocketAdapter
public void onPing(com.sun.grizzly.websockets.WebSocket w, byte[] bytes)
onPing
in interface com.sun.grizzly.websockets.WebSocketListener
onPing
in class com.sun.grizzly.websockets.WebSocketAdapter
public void onPong(com.sun.grizzly.websockets.WebSocket w, byte[] bytes)
onPong
in interface com.sun.grizzly.websockets.WebSocketListener
onPong
in class com.sun.grizzly.websockets.WebSocketAdapter
public void onFragment(com.sun.grizzly.websockets.WebSocket w, byte[] bytes, boolean last)
onFragment
in interface com.sun.grizzly.websockets.WebSocketListener
onFragment
in class com.sun.grizzly.websockets.WebSocketAdapter
public void onFragment(com.sun.grizzly.websockets.WebSocket w, String text, boolean last)
onFragment
in interface com.sun.grizzly.websockets.WebSocketListener
onFragment
in class com.sun.grizzly.websockets.WebSocketAdapter
Copyright © 2016. All rights reserved.