Class AtmospherePushConnection.AtmosphereResponse

java.lang.Object
com.google.gwt.core.client.JavaScriptObject
com.vaadin.client.communication.AtmospherePushConnection.AbstractJSO
com.vaadin.client.communication.AtmospherePushConnection.AtmosphereResponse
Enclosing class:
AtmospherePushConnection

public static class AtmospherePushConnection.AtmosphereResponse extends AtmospherePushConnection.AbstractJSO
Provides data from an Atmosphere response JavaScript object.
  • Constructor Details

    • AtmosphereResponse

      protected AtmosphereResponse()
      JavaScriptObject constructor.
  • Method Details

    • getStatusCode

      public final int getStatusCode()
      Gets the response status code.
      Returns:
      the response status code.
    • getResponseBody

      public final String getResponseBody()
      Gets the response text.
      Returns:
      the response body.
    • getState

      public final String getState()
      Gets the Atmosphere reported state.

      The state can be at least messageReceived, error, opening, messagePublished, re-connecting, closedByClient, re-opening, fail-to-reconnect, unsubscribe, closed

      Returns:
      the state reported by Atmosphere
    • getTransport

      public final String getTransport()
      Gets the transport reported by Atmosphere.
      Returns:
      the transport