|
||||||||||
| 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. |
String |
getHeader(String header)
Returns the response header. |
String |
getOauthApprovalUrl()
If this value is specified, the user needs to visit an external page to approve the gadget's request to access data. |
String |
getOauthError()
If this value is specified, it indicates an OAuth-related error occurred. |
String |
getOauthErrorText()
If this value is specified, it indicates an OAuth-related error occurred. |
int |
getStatusCode()
Returns the status code of the response. |
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 String getHeader(String header)
header - Header name.
null if absent.public final String getOauthApprovalUrl()
null if absent.public final String getOauthError()
null if absent.public final String getOauthErrorText()
null
if absent.public final int getStatusCode()
public final String getText()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||