Apache CXF API

org.apache.cxf.transport.websocket.atmosphere
Class AtmosphereWebSocketHandler

java.lang.Object
  extended by 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


Nested Class Summary
protected static class AtmosphereWebSocketHandler.AtmosphereWebSocketServletHolder
           
 
Field Summary
protected  AtmosphereWebSocketServletDestination destination
           
 
Constructor Summary
AtmosphereWebSocketHandler()
           
 
Method Summary
 void configure(org.atmosphere.cpr.AtmosphereConfig config)
          
protected  WebSocketVirtualServletRequest createServletRequest(WebSocketServletHolder webSocketHolder, byte[] data, int offset, int length)
           
protected  WebSocketVirtualServletRequest createServletRequest(WebSocketServletHolder webSocketHolder, InputStream stream)
           
protected  WebSocketVirtualServletResponse createServletResponse(WebSocketServletHolder webSocketHolder)
           
 AtmosphereWebSocketServletDestination getDestination()
           
 void onClose(org.atmosphere.websocket.WebSocket webSocket)
          
 void onError(org.atmosphere.websocket.WebSocket webSocket, org.atmosphere.websocket.WebSocketProcessor.WebSocketException t)
          
 List<org.atmosphere.cpr.AtmosphereRequest> onMessage(org.atmosphere.websocket.WebSocket webSocket, byte[] data, int offset, int length)
          
 List<org.atmosphere.cpr.AtmosphereRequest> onMessage(org.atmosphere.websocket.WebSocket webSocket, String data)
          
 void onOpen(org.atmosphere.websocket.WebSocket webSocket)
          
 void setDestination(AtmosphereWebSocketServletDestination destination)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

destination

protected AtmosphereWebSocketServletDestination destination
Constructor Detail

AtmosphereWebSocketHandler

public AtmosphereWebSocketHandler()
Method Detail

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 API

Apache CXF