public static final class AbstractReflectorAtmosphereHandler.Default extends AbstractReflectorAtmosphereHandler
This default implementation does nothing when onRequest(org.atmosphere.cpr.AtmosphereResource) is called.
It could be used when all the installed interceptors do the job
and the framework requires us to install an handler.
AbstractReflectorAtmosphereHandler.Default| Constructor and Description |
|---|
Default() |
| Modifier and Type | Method and Description |
|---|---|
void |
onRequest(AtmosphereResource resource)
When a client sends a request to its associated
AtmosphereHandler, it can decide if the underlying
connection can be suspended (creating a Continuation) or handle the connection synchronously. |
destroy, init, onStateChange, postStateChange, useTwoStepWrite, writepublic void onRequest(AtmosphereResource resource) throws IOException
AtmosphereHandler, it can decide if the underlying
connection can be suspended (creating a Continuation) or handle the connection synchronously.
It is recommended to only suspend requests for which HTTP method is a GET and use the POST method to send data
to the server, without marking the connection as asynchronous.resource - an AtmosphereResourceIOExceptionCopyright © 2016. All rights reserved.