org.jclouds.io.payloads
Class MultipartForm
java.lang.Object
org.jclouds.io.payloads.BasePayload<Iterable<? extends Part>>
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
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. |
BOUNDARY
public static final String BOUNDARY
- See Also:
- Constant Field Values
MultipartForm
public MultipartForm(String boundary,
Iterable<? extends Part> content)
MultipartForm
public MultipartForm(String boundary,
Part... parts)
MultipartForm
public MultipartForm(Part... parts)
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-2011 jclouds. All Rights Reserved.