public class Response
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
Blob |
getBody() |
long |
getContentLength() |
java.util.List<java.lang.String> |
getHeader(java.lang.String headerName) |
com.google.api.client.http.GenericUrl |
getRequestUrl() |
int |
getStatusCode() |
public int getStatusCode()
public java.util.List<java.lang.String> getHeader(java.lang.String headerName)
headerName - the header namepublic long getContentLength()
throws java.lang.NumberFormatException
Content-Length header, or -1 if not foundjava.lang.NumberFormatException - if parsing the content length header failspublic Blob getBody() throws java.io.IOException
Blob.java.io.IOException - if getting the HTTP response content fails.public com.google.api.client.http.GenericUrl getRequestUrl()