org.jclouds.io
Interface Payload

All Superinterfaces:
Closeable, com.google.common.io.InputSupplier<InputStream>, WriteTo
All Known Implementing Classes:
ApacheHCUtils.HttpEntityPayload, BaseCipherPayload, BasePayload, ByteArrayPayload, DelegatingPayload, FilePayload, InputStreamPayload, InputStreamSupplierPayload, MultipartForm, Part, PhantomPayload, RSADecryptingPayload, RSAEncryptingPayload, StreamingPayload, StringPayload, UrlEncodedFormPayload

public interface Payload
extends com.google.common.io.InputSupplier<InputStream>, WriteTo, Closeable

Author:
Adrian Cole

Method Summary
 MutableContentMetadata getContentMetadata()
           
 InputStream getInput()
          Creates a new InputStream object of the payload.
 Object getRawContent()
          Payload in its original form.
 boolean isRepeatable()
          Tells if the payload is capable of producing its data more than once.
 void release()
          release resources used by this entity.
 void setContentMetadata(MutableContentMetadata in)
           
 
Methods inherited from interface org.jclouds.io.WriteTo
writeTo
 
Methods inherited from interface java.io.Closeable
close
 

Method Detail

getInput

InputStream getInput()
Creates a new InputStream object of the payload.

Specified by:
getInput in interface com.google.common.io.InputSupplier<InputStream>

getRawContent

Object getRawContent()
Payload in its original form.


isRepeatable

boolean isRepeatable()
Tells if the payload is capable of producing its data more than once.


release

void release()
release resources used by this entity. This should be called when data is discarded.


getContentMetadata

MutableContentMetadata getContentMetadata()

setContentMetadata

void setContentMetadata(MutableContentMetadata in)


Copyright © 2009-2012 jclouds. All Rights Reserved.