public interface Response
Modifier and Type | Method and Description |
---|---|
String |
getBody()
Obtains the HTTP Response body
|
int |
getCode()
Obtains the HTTP status code
|
String |
getHeader(String name)
Obtains a single HTTP HEADER value, or null if undefined
|
Map<String,String> |
getHeaders()
Obtains a
Map containing the HTTP Response Headers |
Request |
getRequest() |
InputStream |
getStream()
Obtains the meaningful stream of the HttpUrlConnection, either inputStream
or errorInputStream, depending on the status code
|
boolean |
isSuccessful() |
boolean isSuccessful()
String getBody()
InputStream getStream()
int getCode()
Map<String,String> getHeaders()
Map
containing the HTTP Response HeadersString getHeader(String name)
name
- the header name.Request getRequest()
Copyright © 2012-2013. All Rights Reserved.