public class ResponseContentSupplier extends Object implements Serializable, AutoCloseable
| Constructor and Description |
|---|
ResponseContentSupplier(ResponseHandle responseHandle,
org.apache.http.HttpResponse response) |
ResponseContentSupplier(String content,
int status) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
String |
getCharset() |
String |
getContent() |
InputStream |
getContentStream() |
Map<String,List<String>> |
getHeaders() |
int |
getStatus() |
String |
toString() |
public ResponseContentSupplier(String content, int status)
public ResponseContentSupplier(ResponseHandle responseHandle, org.apache.http.HttpResponse response)
public int getStatus()
public String getCharset()
public String getContent()
public InputStream getContentStream()
public void close()
throws IOException
close in interface AutoCloseableIOExceptionCopyright © 2016–2020. All rights reserved.