org.apache.cxf.transport.websocket.atmosphere
Class AtmosphereWebSocketHandler
java.lang.Object
org.apache.cxf.transport.websocket.atmosphere.AtmosphereWebSocketHandler
- All Implemented Interfaces:
- org.atmosphere.websocket.WebSocketProtocol
- Direct Known Subclasses:
- AtmosphereWebSocketStreamHandler
public class AtmosphereWebSocketHandler
- extends Object
- implements org.atmosphere.websocket.WebSocketProtocol
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
destination
protected AtmosphereWebSocketServletDestination destination
AtmosphereWebSocketHandler
public AtmosphereWebSocketHandler()
getDestination
public AtmosphereWebSocketServletDestination getDestination()
setDestination
public void setDestination(AtmosphereWebSocketServletDestination destination)
configure
public void configure(org.atmosphere.cpr.AtmosphereConfig config)
-
- Specified by:
configure
in interface org.atmosphere.websocket.WebSocketProtocol
onMessage
public List<org.atmosphere.cpr.AtmosphereRequest> onMessage(org.atmosphere.websocket.WebSocket webSocket,
String data)
-
- Specified by:
onMessage
in interface org.atmosphere.websocket.WebSocketProtocol
onMessage
public List<org.atmosphere.cpr.AtmosphereRequest> onMessage(org.atmosphere.websocket.WebSocket webSocket,
byte[] data,
int offset,
int length)
-
- Specified by:
onMessage
in interface org.atmosphere.websocket.WebSocketProtocol
onOpen
public void onOpen(org.atmosphere.websocket.WebSocket webSocket)
-
- Specified by:
onOpen
in interface org.atmosphere.websocket.WebSocketProtocol
onClose
public void onClose(org.atmosphere.websocket.WebSocket webSocket)
-
- Specified by:
onClose
in interface org.atmosphere.websocket.WebSocketProtocol
onError
public void onError(org.atmosphere.websocket.WebSocket webSocket,
org.atmosphere.websocket.WebSocketProcessor.WebSocketException t)
-
- Specified by:
onError
in interface org.atmosphere.websocket.WebSocketProtocol
createServletRequest
protected WebSocketVirtualServletRequest createServletRequest(WebSocketServletHolder webSocketHolder,
byte[] data,
int offset,
int length)
throws IOException
- Throws:
IOException
createServletRequest
protected WebSocketVirtualServletRequest createServletRequest(WebSocketServletHolder webSocketHolder,
InputStream stream)
throws IOException
- Throws:
IOException
createServletResponse
protected WebSocketVirtualServletResponse createServletResponse(WebSocketServletHolder webSocketHolder)
throws IOException
- Throws:
IOException
Apache CXF