public class Response extends Object
| Modifier and Type | Method and Description |
|---|---|
InputStream |
getBody() |
long |
getContentLength() |
List<String> |
getHeader(String headerName) |
com.google.api.client.http.GenericUrl |
getRequestUrl() |
int |
getStatusCode() |
public int getStatusCode()
public List<String> getHeader(String headerName)
headerName - the header namepublic long getContentLength()
throws NumberFormatException
Content-Length header, or -1 if not foundNumberFormatException - if parsing the content length header failspublic InputStream getBody() throws IOException
InputStream.IOException - if getting the HTTP response content fails.public com.google.api.client.http.GenericUrl getRequestUrl()
Copyright © 2019. All rights reserved.