Package com.vaadin.client.communication
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 Summary
Constructors -
Method Summary
Methods inherited from class com.vaadin.client.communication.AtmospherePushConnection.AbstractJSO
getBooleanValue, getIntValue, getStringValue, setBooleanValue, setIntValue, setStringValueMethods inherited from class com.google.gwt.core.client.JavaScriptObject
cast, createArray, createArray, createFunction, createObject, equals, hashCode, toSource, toString
-
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
Gets the response text.- Returns:
- the response body.
-
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
Gets the transport reported by Atmosphere.- Returns:
- the transport
-