Package org.jclouds.http.apachehc
Class ApacheHCUtils.HttpEntityPayload
- java.lang.Object
-
- org.jclouds.io.payloads.BasePayload<org.apache.http.HttpEntity>
-
- org.jclouds.http.apachehc.ApacheHCUtils.HttpEntityPayload
-
- All Implemented Interfaces:
Closeable
,AutoCloseable
,Payload
- Enclosing class:
- ApacheHCUtils
public static class ApacheHCUtils.HttpEntityPayload extends BasePayload<org.apache.http.HttpEntity>
-
-
Field Summary
-
Fields inherited from class org.jclouds.io.payloads.BasePayload
content, contentMetadata, written
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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.-
Methods inherited from class org.jclouds.io.payloads.BasePayload
close, equals, getContentMetadata, getInput, getRawContent, hashCode, isSensitive, setContentMetadata, setSensitive, toString
-
-
-
-
Method Detail
-
openStream
public InputStream openStream() throws IOException
Description copied from interface:Payload
Creates a new InputStream object of the payload.- Throws:
IOException
-
isRepeatable
public boolean isRepeatable()
Description copied from class:BasePayload
By default we are repeatable.- Specified by:
isRepeatable
in interfacePayload
- Overrides:
isRepeatable
in classBasePayload<org.apache.http.HttpEntity>
-
release
public void release()
Description copied from class:BasePayload
By default there are no resources to release.- Specified by:
release
in interfacePayload
- Overrides:
release
in classBasePayload<org.apache.http.HttpEntity>
-
-