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
  • Constructor Details

    • Default

      public Default()
  • Method Details

    • 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