org.atmosphere.container
Class NettyCometSupport
java.lang.Object
org.atmosphere.cpr.AsynchronousProcessor
org.atmosphere.container.NettyCometSupport
- All Implemented Interfaces:
- AsyncSupport<AtmosphereResourceImpl>
public class NettyCometSupport
- extends AsynchronousProcessor
Netty's Framework AsyncSupport
| Methods inherited from class org.atmosphere.cpr.AsynchronousProcessor |
cancelled, destroyResource, getContainerName, init, map, map, resumed, shutdown, supportSession, suspended, timedout |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SUSPEND
public static final String SUSPEND
RESUME
public static final String RESUME
CHANNEL
public static final String CHANNEL
NettyCometSupport
public NettyCometSupport(AtmosphereConfig config)
service
public AtmosphereFramework.Action service(AtmosphereRequest req,
AtmosphereResponse res)
throws IOException,
javax.servlet.ServletException
- Serve the
AtmosphereRequest and the AtmosphereResponse and return
the appropriate AtmosphereFramework.Action.
- Parameters:
req - the AtmosphereRequestres - the AtmosphereResponse
- Returns:
- the
AtmosphereFramework.Action that was manipulated by the AtmosphereHandler
- Throws:
IOException
javax.servlet.ServletException
action
public void action(AtmosphereResourceImpl r)
- Process an
AtmosphereFramework.Action from an ActionEvent operation like suspend, resume or timed out.
- Specified by:
action in interface AsyncSupport<AtmosphereResourceImpl>- Overrides:
action in class AsynchronousProcessor
- Parameters:
r - An instance of AtmosphereFramework.Action
supportWebSocket
public boolean supportWebSocket()
- Return true if this implementation supports the websocket protocol.
return true if supported
- Specified by:
supportWebSocket in interface AsyncSupport<AtmosphereResourceImpl>- Overrides:
supportWebSocket in class AsynchronousProcessor
Copyright © 2012. All Rights Reserved.