Interface AtmosphereHandler

    • Method Detail

      • onRequest

        void onRequest​(AtmosphereResource resource)
                throws java.io.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:
        java.io.IOException
      • destroy

        void destroy()
        Destroy this handler