public class ResponseContentSupplier extends Object implements Serializable, AutoCloseable
A container for the Http Response. The container is returned as is to the Pipeline. For the normal plugin, the container is consumed internally (since it cannot be returned).
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 |
getAbortMessage() |
boolean |
getAbortStatus() |
String |
getCharset() |
String |
getContent() |
InputStream |
getContentStream() |
Map<String,List<String>> |
getHeaders() |
int |
getStatus() |
void |
setAbortMessage(String abortMessage) |
void |
setAbortStatus(boolean isAbort) |
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 AutoCloseable
IOException
public void setAbortStatus(boolean isAbort)
public boolean getAbortStatus()
public void setAbortMessage(String abortMessage)
public String getAbortMessage()
Copyright © 2016–2025. All rights reserved.