|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.google.appengine.api.urlfetch.HTTPResponse
public class HTTPResponse
HTTPResponse
encapsulates the results of a HTTPRequest
made via the URLFetchService
.
Method Summary | |
---|---|
byte[] |
getContent()
Returns the content of the request, or null if there is no content present (e.g. |
java.net.URL |
getFinalUrl()
Returns the final URL the content came from if redirects were followed automatically in the request, if different than the input URL; otherwise this will be null. |
java.util.List<HTTPHeader> |
getHeaders()
Returns a List of HTTP response headers that were
returned by the remote server. |
int |
getResponseCode()
Returns the HTTP response code from the request (e.g. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public int getResponseCode()
public byte[] getContent()
public java.net.URL getFinalUrl()
public java.util.List<HTTPHeader> getHeaders()
List
of HTTP response headers that were
returned by the remote server. Multi-valued headers are
represented as a single HTTPHeader
with comma-separated
values.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |