public interface Response
| Modifier and Type | Method and Description |
|---|---|
java.util.List<java.lang.String> |
getHeader(java.lang.String headerName)
Return the header value
|
java.util.Map<java.lang.String,java.util.List<java.lang.String>> |
getHeaders()
Returns the response headers
|
int |
getStatus()
Returns the response HTTP Status code
|
byte[] |
readAllBytes()
Reads the response stream to the end and returns the response bytes
|
java.lang.String |
readLine()
Reads one line from the response stream
|
java.lang.String |
readToEnd()
Reads the response stream to the end and returns its value as a String
|
java.util.Map<java.lang.String,java.util.List<java.lang.String>> getHeaders()
java.util.List<java.lang.String> getHeader(java.lang.String headerName)
headerName - Header to retrievejava.lang.String readToEnd()
throws java.io.IOException
java.io.IOExceptionjava.lang.String readLine()
throws java.io.IOException
java.io.IOExceptionbyte[] readAllBytes()
throws java.io.IOException
java.io.IOExceptionint getStatus()