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 installedinterceptorsdo 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 Constructor Description Default()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidonRequest(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
-
-
-
-
Method Detail
-
onRequest
public void onRequest(AtmosphereResource resource) throws java.io.IOException
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:
java.io.IOException
-
-