Package 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 FrameworkAsyncSupportand framework running on top of it, like vert.x and Play!
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringRESUMEstatic java.lang.StringSUSPEND-
Fields inherited from class org.atmosphere.cpr.AsynchronousProcessor
cancelledAction, config, timedoutAction
-
-
Constructor Summary
Constructors Constructor Description NettyCometSupport(AtmosphereConfig config)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaction(AtmosphereResourceImpl r)Process anActionfrom anActionEventoperation like suspend, resume or timed out.AsyncSupportcomplete(AtmosphereResourceImpl r)Complete and close the connection associated with an implementation ofAtmosphereResourceActionservice(AtmosphereRequest req, AtmosphereResponse res)booleansupportWebSocket()Return true if this implementation supports the websocket protocol.-
Methods inherited from class org.atmosphere.cpr.AsynchronousProcessor
allowSessionTimeoutRemoval, cancelled, completeLifecycle, endRequest, getContainerName, init, invokeAtmosphereHandler, invokeInterceptors, map, postInterceptors, resumed, shutdown, supportSession, suspended, timedout
-
-
-
-
Constructor Detail
-
NettyCometSupport
public NettyCometSupport(AtmosphereConfig config)
-
-
Method Detail
-
service
public Action service(AtmosphereRequest req, AtmosphereResponse res) throws java.io.IOException, javax.servlet.ServletException
Description copied from interface:AsyncSupport- Parameters:
req- theAtmosphereRequestres- theAtmosphereResponse- Returns:
- the
Actionthat was manipulated by theAtmosphereHandler - Throws:
java.io.IOExceptionjavax.servlet.ServletException
-
action
public void action(AtmosphereResourceImpl r)
Description copied from interface:AsyncSupportProcess anActionfrom anActionEventoperation like suspend, resume or timed out.- Specified by:
actionin interfaceAsyncSupport<AtmosphereResourceImpl>- Overrides:
actionin classAsynchronousProcessor- Parameters:
r- An instance ofAction
-
supportWebSocket
public boolean supportWebSocket()
Description copied from interface:AsyncSupportReturn true if this implementation supports the websocket protocol.- Specified by:
supportWebSocketin interfaceAsyncSupport<AtmosphereResourceImpl>- Overrides:
supportWebSocketin classAsynchronousProcessor- Returns:
- true if supported
-
complete
public AsyncSupport complete(AtmosphereResourceImpl r)
Description copied from interface:AsyncSupportComplete and close the connection associated with an implementation ofAtmosphereResource- Specified by:
completein interfaceAsyncSupport<AtmosphereResourceImpl>- Overrides:
completein classAsynchronousProcessor- Parameters:
r-AtmosphereResource- Returns:
- this
-
-