org.jclouds.http.apachehc
Class ApacheHCUtils.HttpEntityPayload

java.lang.Object
  extended by org.jclouds.io.payloads.BasePayload<org.apache.http.HttpEntity>
      extended by 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>


Field Summary
 
Fields inherited from class org.jclouds.io.payloads.BasePayload
content, contentMetadata, written
 
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.
 
Methods inherited from class org.jclouds.io.payloads.BasePayload
close, equals, getContentMetadata, getRawContent, hashCode, setContentMetadata, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Method Detail

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.