|
||||||||||
| 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(java.lang.Class<T> entityClass)
Unmarshall the response body as the specified type |
|
java.lang.String |
getHeader(java.lang.String name)
Get's the header by the given name |
|
java.util.Map<java.lang.String,java.lang.String> |
getHeaders()
Get a map of all the headers |
|
java.io.InputStream |
getResponseBodyAsStream()
|
|
java.lang.String |
getResponseBodyAsString()
|
|
int |
getStatusCode()
|
|
java.lang.String |
getStatusText()
|
|
boolean |
isSuccessful()
|
|
| Method Detail |
|---|
int getStatusCode()
java.lang.String getResponseBodyAsString()
throws ResponseException
ResponseException - If the response cannot be retrieved
java.io.InputStream getResponseBodyAsStream()
throws ResponseException
ResponseException - If the response cannot be retrieved
<T> T getEntity(java.lang.Class<T> entityClass)
throws ResponseException
entityClass - the type of the response
ResponseException - if there was difficulty reading the response or unmarshalling the objectjava.lang.String getStatusText()
boolean isSuccessful()
java.lang.String getHeader(java.lang.String name)
name - The name of the header
null is returned.java.util.Map<java.lang.String,java.lang.String> getHeaders()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||