public class ResponseContentSupplier extends Object implements Serializable, AutoCloseable
Modifier and Type | Class and Description |
---|---|
static class |
ResponseContentSupplier.ResponseHandle |
Constructor and Description |
---|
ResponseContentSupplier(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() |
Map<String,Object> |
getContentMap() |
InputStream |
getContentStream() |
Map<String,List<String>> |
getHeaders() |
int |
getStatus() |
String |
toString() |
public ResponseContentSupplier(String content, int status)
public ResponseContentSupplier(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 AutoCloseable
IOException
Copyright © 2016–2019. All rights reserved.