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:
- com.google.common.io.InputSupplier<InputStream>, Closeable, Payload, WriteTo
- Enclosing class:
- ApacheHCUtils
public static class ApacheHCUtils.HttpEntityPayload
- extends BasePayload<org.apache.http.HttpEntity>
Method Summary |
InputStream |
getInput()
Creates a new InputStream object of the payload. |
boolean |
isRepeatable()
By default we are repeatable. |
void |
release()
By default there are no resources to release. |
void |
writeTo(OutputStream outstream)
Writes the payload content to the output stream. |
getInput
public InputStream getInput()
- Description copied from interface:
Payload
- Creates a new InputStream object of the payload.
isRepeatable
public boolean isRepeatable()
- Description copied from class:
BasePayload
- By default we are repeatable.
- Specified by:
isRepeatable
in interface Payload
- Overrides:
isRepeatable
in class BasePayload<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 interface Payload
- Overrides:
release
in class BasePayload<org.apache.http.HttpEntity>
writeTo
public void writeTo(OutputStream outstream)
throws IOException
- Description copied from class:
BasePayload
- Writes the payload content to the output stream.
- Specified by:
writeTo
in interface WriteTo
- Overrides:
writeTo
in class BasePayload<org.apache.http.HttpEntity>
- Throws:
IOException
Copyright © 2009-2011 jclouds. All Rights Reserved.