|
||||||||||
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 | |
---|---|
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 retrievedjava.io.InputStream getResponseBodyAsStream() throws ResponseException
ResponseException
- If the response cannot be retrievedjava.lang.String getStatusText()
boolean isSuccessful()
java.lang.String getHeader(java.lang.String name)
name
- The name of the header
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 |