org.atmosphere.handler
Class AbstractReflectorAtmosphereHandler.Default
java.lang.Object
org.atmosphere.handler.AbstractReflectorAtmosphereHandler
org.atmosphere.handler.AbstractReflectorAtmosphereHandler.Default
- All Implemented Interfaces:
- AtmosphereHandler
- Enclosing class:
- AbstractReflectorAtmosphereHandler
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.
- Since:
- 2.2
- Version:
- 1.0
- Author:
- Guillaume DROUET
|
Method Summary |
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. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractReflectorAtmosphereHandler.Default
public AbstractReflectorAtmosphereHandler.Default()
onRequest
public void onRequest(AtmosphereResource resource)
throws IOException
- 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.
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.
- Parameters:
resource - an AtmosphereResource
- Throws:
IOException
Copyright © 2014. All Rights Reserved.