|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface WebSocketProcessor
Atmosphere's WebSocket Support implementation. The default behavior is implemented in DefaultWebSocketProcessor.
This class is targeted at framework developer as it requires Atmosphere's internal knowledge.
This class can also be used to implement the JSR 345 recommendation.
| Nested Class Summary | |
|---|---|
static class |
WebSocketProcessor.WebSocketException
An exception that can be used to flag problems with the WebSocket processing. |
| Method Summary | |
|---|---|
void |
close(int closeCode)
Invked when the WebServer is closing the native WebSocket |
void |
invokeWebSocketProtocol(byte[] data,
int offset,
int length)
Invoked when a WebSocket message gets received from the underlying container |
void |
invokeWebSocketProtocol(String webSocketMessage)
Invoked when a WebSocket message gets received from the underlying container |
void |
notifyListener(WebSocketEventListener.WebSocketEvent webSocketEvent)
Notify all WebSocketEventListener |
void |
open(AtmosphereRequest request)
Invoked when a WebSocket gets opened by the underlying container |
WebSocket |
webSocket()
Return the underlying WebSocket. |
| Method Detail |
|---|
void open(AtmosphereRequest request)
throws IOException
request -
IOExceptionvoid invokeWebSocketProtocol(String webSocketMessage)
webSocketMessage -
void invokeWebSocketProtocol(byte[] data,
int offset,
int length)
data - WebSocket webSocket()
void close(int closeCode)
closeCode - void notifyListener(WebSocketEventListener.WebSocketEvent webSocketEvent)
WebSocketEventListener
webSocketEvent -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||