public class Response extends Object
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes the connection
|
String |
getErrorStreamAsString(String encoding)
Gets the error response content as String
|
String |
getHeader(String name) |
InputStream |
getInputStream()
Gets the response content via InputStream.
|
String |
getResponseBodyAsString(String encoding)
Gets the response content as String using given encoding
|
int |
getStatus()
Gets the response HTTP status.
|
public void close()
throws IOException
IOExceptionpublic InputStream getInputStream() throws IOException
IOExceptionpublic int getStatus()
public String getResponseBodyAsString(String encoding) throws Exception
encoding - the encoding typeExceptionCopyright © 2018. All Rights Reserved.