Package org.atmosphere.handler
Class AbstractReflectorAtmosphereHandler.Default
java.lang.Object
org.atmosphere.handler.AbstractReflectorAtmosphereHandler
org.atmosphere.handler.AbstractReflectorAtmosphereHandler.Default
- All Implemented Interfaces:
AtmosphereHandler,AtmosphereServletProcessor
- 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
-
Nested Class Summary
Nested classes/interfaces inherited from class org.atmosphere.handler.AbstractReflectorAtmosphereHandler
AbstractReflectorAtmosphereHandler.Default -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidonRequest(AtmosphereResource resource) When a client sends a request to its associatedAtmosphereHandler, it can decide if the underlying connection can be suspended (creating a Continuation) or handle the connection synchronously.Methods inherited from class org.atmosphere.handler.AbstractReflectorAtmosphereHandler
destroy, init, onStateChange, postStateChange, useTwoStepWrite, write
-
Constructor Details
-
Default
public Default()
-
-
Method Details
-
onRequest
When a client sends a request to its associatedAtmosphereHandler, 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- anAtmosphereResource- Throws:
IOException
-