org.atmosphere.samples.pubsub.config.protocol
Class DelegatingWebSocketProtocol
java.lang.Object
org.atmosphere.samples.pubsub.config.protocol.DelegatingWebSocketProtocol
- All Implemented Interfaces:
- WebSocketProtocol
public class DelegatingWebSocketProtocol
- extends Object
- implements WebSocketProtocol
|
Field Summary |
static org.slf4j.Logger |
LOG
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LOG
public static final org.slf4j.Logger LOG
DelegatingWebSocketProtocol
public DelegatingWebSocketProtocol()
configure
public void configure(AtmosphereConfig atmosphereConfig)
- Specified by:
configure in interface WebSocketProtocol
onMessage
public List<AtmosphereRequest> onMessage(WebSocket webSocket,
String message)
- Specified by:
onMessage in interface WebSocketProtocol
onMessage
public List<AtmosphereRequest> onMessage(WebSocket webSocket,
byte[] bytes,
int offset,
int length)
- Specified by:
onMessage in interface WebSocketProtocol
onOpen
public void onOpen(WebSocket webSocket)
- Specified by:
onOpen in interface WebSocketProtocol
onClose
public void onClose(WebSocket webSocket)
- Specified by:
onClose in interface WebSocketProtocol
onError
public void onError(WebSocket webSocket,
WebSocketProcessor.WebSocketException e)
- Specified by:
onError in interface WebSocketProtocol
Copyright © 2012. All Rights Reserved.