|
GWT 2.7.0 | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.google.gwt.http.client.Response com.google.gwt.http.client.ResponseImpl
class ResponseImpl
A Response
implementation based on a XMLHttpRequest
.
Field Summary |
---|
Constructor Summary | |
---|---|
ResponseImpl(XMLHttpRequest xmlHttpRequest)
|
Method Summary | |
---|---|
java.lang.String |
getHeader(java.lang.String header)
Returns the value of the requested header or null if the header was not specified. |
Header[] |
getHeaders()
Returns an array of HTTP headers associated with this response. |
java.lang.String |
getHeadersAsString()
Returns all headers as a single string. |
int |
getStatusCode()
Returns the HTTP status code that is part of this response. |
java.lang.String |
getStatusText()
Returns the HTTP status message text. |
java.lang.String |
getText()
Returns the text associated with the response. |
protected boolean |
isResponseReady()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ResponseImpl(XMLHttpRequest xmlHttpRequest)
Method Detail |
---|
public java.lang.String getHeader(java.lang.String header)
Response
getHeader
in class Response
header
- the header to query for
public Header[] getHeaders()
Response
getHeaders
in class Response
public java.lang.String getHeadersAsString()
Response
getHeadersAsString
in class Response
public int getStatusCode()
Response
The value will be 0 if the request failed (e.g. network error, or the server disallowed the request) or has been aborted (this will generally be the case when leaving the page).
getStatusCode
in class Response
public java.lang.String getStatusText()
Response
getStatusText
in class Response
public java.lang.String getText()
Response
getText
in class Response
protected boolean isResponseReady()
|
GWT 2.7.0 | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |