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 Modifier Constructor Description protectedAtmosphereResponse()JavaScriptObject constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetResponseBody()Gets the response text.StringgetState()Gets the Atmosphere reported state.intgetStatusCode()Gets the response status code.StringgetTransport()Gets the transport reported by Atmosphere.-
Methods inherited from class com.vaadin.client.communication.AtmospherePushConnection.AbstractJSO
getBooleanValue, getIntValue, getStringValue, setBooleanValue, setIntValue, setStringValue
-
-
-
-
Method Detail
-
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
-
-