|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Response
Represents the response when calling Request.execute(ResponseHandler)
| Method Summary | ||
|---|---|---|
|
getEntity(Class<T> entityClass)
Unmarshall the response body as the specified type |
|
String |
getHeader(String name)
Get's the header by the given name |
|
Map<String,String> |
getHeaders()
Get a map of all the headers |
|
InputStream |
getResponseBodyAsStream()
|
|
String |
getResponseBodyAsString()
|
|
int |
getStatusCode()
|
|
String |
getStatusText()
|
|
boolean |
isSuccessful()
|
|
| Method Detail |
|---|
int getStatusCode()
String getResponseBodyAsString()
throws ResponseException
ResponseException - If the response cannot be retrieved
InputStream getResponseBodyAsStream()
throws ResponseException
ResponseException - If the response cannot be retrieved
<T> T getEntity(Class<T> entityClass)
throws ResponseException
entityClass - the type of the response
ResponseException - if there was difficulty reading the response or unmarshalling the objectString getStatusText()
boolean isSuccessful()
String getHeader(String name)
name - The name of the header
null is returned.Map<String,String> getHeaders()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||