org.atmosphere.websocket
Class WebSocketAdapter
java.lang.Object
org.atmosphere.websocket.WebSocketAdapter
- All Implemented Interfaces:
- AsyncIOWriter, WebSocket
- Direct Known Subclasses:
- GrizzlyWebSocket, Jetty8WebSocket, JettyWebSocket
public abstract class WebSocketAdapter
- extends Object
- implements WebSocket
Simple class used to expose internal objects to WebSocket
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
WebSocketAdapter
public WebSocketAdapter()
setAtmosphereResource
public WebSocketAdapter setAtmosphereResource(AtmosphereResource<?,?> r)
- Configure the
AtmosphereResource
- Parameters:
r - the AtmosphereResource
close
public void close()
throws IOException
- Description copied from interface:
WebSocket
- Close the underlying WebSocket connection
- Specified by:
close in interface WebSocket
- Throws:
IOException
resource
public AtmosphereResource<?,?> resource()
- Description copied from interface:
WebSocket
- Return the current
AtmosphereResource representing the underlying connection and the original
HttpServletRequest
- Specified by:
resource in interface WebSocket
- Returns:
- the current
AtmosphereResource
Copyright © 2011. All Rights Reserved.