public static class OpenICFWebSocketApplication.OpenICFWebSocket
extends org.glassfish.grizzly.websockets.DefaultWebSocket
Modifier and Type | Field and Description |
---|---|
protected Queue<OperationMessageListener> |
listeners |
Constructor and Description |
---|
OpenICFWebSocket(org.glassfish.grizzly.websockets.ProtocolHandler protocolHandler,
org.glassfish.grizzly.http.HttpRequestPacket request,
ConnectionPrincipal<?> principal,
org.glassfish.grizzly.websockets.WebSocketListener... listeners) |
Modifier and Type | Method and Description |
---|---|
boolean |
add(OperationMessageListener listener) |
void |
onClose(org.glassfish.grizzly.websockets.DataFrame frame) |
void |
onConnect() |
void |
onMessage(byte[] data) |
void |
onMessage(String text) |
void |
onPing(org.glassfish.grizzly.websockets.DataFrame frame) |
void |
onPong(org.glassfish.grizzly.websockets.DataFrame frame) |
boolean |
remove(OperationMessageListener listener) |
add, broadcast, broadcast, broadcastFragment, broadcastFragment, close, close, close, getBroadcaster, getListeners, isConnected, onFragment, onFragment, remove, send, send, sendPing, sendPong, sendRaw, setBroadcaster, setClosed, stream, stream, toRawData, toRawData, toRawData, toRawData
protected final Queue<OperationMessageListener> listeners
public OpenICFWebSocket(org.glassfish.grizzly.websockets.ProtocolHandler protocolHandler, org.glassfish.grizzly.http.HttpRequestPacket request, ConnectionPrincipal<?> principal, org.glassfish.grizzly.websockets.WebSocketListener... listeners)
public final boolean add(OperationMessageListener listener)
public final boolean remove(OperationMessageListener listener)
public void onClose(org.glassfish.grizzly.websockets.DataFrame frame)
onClose
in interface org.glassfish.grizzly.websockets.WebSocket
onClose
in class org.glassfish.grizzly.websockets.SimpleWebSocket
public void onConnect()
onConnect
in interface org.glassfish.grizzly.websockets.WebSocket
onConnect
in class org.glassfish.grizzly.websockets.SimpleWebSocket
public void onMessage(byte[] data)
onMessage
in interface org.glassfish.grizzly.websockets.WebSocket
onMessage
in class org.glassfish.grizzly.websockets.SimpleWebSocket
public void onMessage(String text)
onMessage
in interface org.glassfish.grizzly.websockets.WebSocket
onMessage
in class org.glassfish.grizzly.websockets.SimpleWebSocket
public void onPing(org.glassfish.grizzly.websockets.DataFrame frame)
onPing
in interface org.glassfish.grizzly.websockets.WebSocket
onPing
in class org.glassfish.grizzly.websockets.SimpleWebSocket
public void onPong(org.glassfish.grizzly.websockets.DataFrame frame)
onPong
in interface org.glassfish.grizzly.websockets.WebSocket
onPong
in class org.glassfish.grizzly.websockets.SimpleWebSocket
Copyright © 2018–2025. All rights reserved.