public class BasicResponse extends Object implements Closeable
| Constructor and Description |
|---|
BasicResponse(org.apache.http.HttpResponse response) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
consume() |
byte[] |
getBytes() |
String |
getContentEncoding() |
long |
getContentLength() |
String |
getContentType() |
int |
getStatusCode() |
InputStream |
getStream() |
String |
getString() |
boolean |
isConsumed() |
protected org.apache.http.HttpResponse |
response() |
public void consume()
public void close()
close in interface Closeableclose in interface AutoCloseableprotected org.apache.http.HttpResponse response()
public boolean isConsumed()
public int getStatusCode()
public long getContentLength()
public String getContentType()
public String getContentEncoding()
public InputStream getStream() throws IOException
IOExceptionpublic String getString() throws IOException
IOExceptionpublic byte[] getBytes()
throws IOException
IOExceptionCopyright © 2023 The Apache Software Foundation. All rights reserved.