org.atmosphere.handler
Class AbstractReflectorAtmosphereHandler.Default

java.lang.Object
  extended by org.atmosphere.handler.AbstractReflectorAtmosphereHandler
      extended by 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

Nested Class Summary
 
Nested classes/interfaces inherited from class org.atmosphere.handler.AbstractReflectorAtmosphereHandler
AbstractReflectorAtmosphereHandler.Default
 
Constructor Summary
AbstractReflectorAtmosphereHandler.Default()
           
 
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 org.atmosphere.handler.AbstractReflectorAtmosphereHandler
destroy, onStateChange, postStateChange
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractReflectorAtmosphereHandler.Default

public AbstractReflectorAtmosphereHandler.Default()
Method Detail

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.