public static class ApacheHCUtils.HttpEntityPayload extends BasePayload<org.apache.http.HttpEntity>
content, contentMetadata, written
Modifier and Type | Method and Description |
---|---|
boolean |
isRepeatable()
By default we are repeatable.
|
InputStream |
openStream()
Creates a new InputStream object of the payload.
|
void |
release()
By default there are no resources to release.
|
void |
writeTo(OutputStream outstream)
Writes the payload content to the output stream.
|
close, equals, getContentMetadata, getInput, getRawContent, hashCode, setContentMetadata, toString
public InputStream openStream() throws IOException
Payload
IOException
public boolean isRepeatable()
BasePayload
isRepeatable
in interface Payload
isRepeatable
in class BasePayload<org.apache.http.HttpEntity>
public void release()
BasePayload
release
in interface Payload
release
in class BasePayload<org.apache.http.HttpEntity>
public void writeTo(OutputStream outstream) throws IOException
BasePayload
writeTo
in interface WriteTo
writeTo
in class BasePayload<org.apache.http.HttpEntity>
IOException
Copyright © 2009-2014 The Apache Software Foundation. All Rights Reserved.