|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.google.gwt.core.client.JavaScriptObject
com.google.gwt.gadgets.client.io.Response<T>
T - Type of parsed data of the response.public class Response<T>
A class wrapping the response returned by gadget container.
| Constructor Summary | |
|---|---|
protected |
Response()
|
| Method Summary | |
|---|---|
T |
getData()
Returns parsed data of the response, if applicable. |
com.google.gwt.core.client.JsArrayString |
getErrors()
Returns an array of any errors that occurred when making the request. |
java.lang.String |
getHeader(java.lang.String header)
Returns the response header. |
java.lang.String |
getOauthApprovalUrl()
If this value is specified, the user needs to visit an external page to approve the gadget's request to access data. |
java.lang.String |
getOauthError()
If this value is specified, it indicates an OAuth-related error occurred. |
java.lang.String |
getOauthErrorText()
If this value is specified, it indicates an OAuth-related error occurred. |
int |
getStatusCode()
Returns the status code of the response. |
java.lang.String |
getText()
Returns unparsed data of the response. |
| Methods inherited from class com.google.gwt.core.client.JavaScriptObject |
|---|
cast, createArray, createFunction, createObject, equals, hashCode, toSource, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
protected Response()
| Method Detail |
|---|
public final T getData()
public final com.google.gwt.core.client.JsArrayString getErrors()
null if absent.public final java.lang.String getHeader(java.lang.String header)
header - Header name.
null if absent.public final java.lang.String getOauthApprovalUrl()
null if absent.public final java.lang.String getOauthError()
null if absent.public final java.lang.String getOauthErrorText()
null
if absent.public final int getStatusCode()
public final java.lang.String getText()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||