org.jclouds.io.payloads
Class MultipartForm

java.lang.Object
  extended by org.jclouds.io.payloads.BasePayload<Iterable<? extends Part>>
      extended by org.jclouds.io.payloads.MultipartForm
All Implemented Interfaces:
com.google.common.io.InputSupplier<InputStream>, Closeable, Payload, WriteTo

public class MultipartForm
extends BasePayload<Iterable<? extends Part>>

Author:
Adrian Cole

Field Summary
static String BOUNDARY
           
 
Fields inherited from class org.jclouds.io.payloads.BasePayload
content, contentMetadata, written
 
Constructor Summary
MultipartForm(Part... parts)
           
MultipartForm(String boundary, Iterable<? extends Part> content)
           
MultipartForm(String boundary, Part... parts)
           
 
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.
 
Methods inherited from class org.jclouds.io.payloads.BasePayload
close, equals, getContentMetadata, getRawContent, hashCode, setContentMetadata, toString, writeTo
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

BOUNDARY

public static final String BOUNDARY
See Also:
Constant Field Values
Constructor Detail

MultipartForm

public MultipartForm(String boundary,
                     Iterable<? extends Part> content)

MultipartForm

public MultipartForm(String boundary,
                     Part... parts)

MultipartForm

public MultipartForm(Part... parts)
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<Iterable<? extends Part>>

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<Iterable<? extends Part>>


Copyright © 2009-2012 jclouds. All Rights Reserved.