Package 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:
Closeable
,AutoCloseable
,Payload
public class MultipartForm extends BasePayload<Iterable<? extends Part>>
-
-
Field Summary
Fields Modifier and Type Field Description static String
BOUNDARY
-
Fields inherited from class org.jclouds.io.payloads.BasePayload
contentMetadata, written
-
-
Constructor Summary
Constructors Constructor Description MultipartForm(String boundary, Iterable<? extends Part> content)
MultipartForm(String boundary, Part... parts)
MultipartForm(Part... parts)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isRepeatable()
By default we are repeatable.InputStream
openStream()
Creates a new InputStream object of the payload.void
release()
By default there are no resources to release.-
Methods inherited from class org.jclouds.io.payloads.BasePayload
close, equals, getContentMetadata, getInput, getRawContent, hashCode, isSensitive, setContentMetadata, setSensitive, toString
-
-
-
-
Field Detail
-
BOUNDARY
public static final String BOUNDARY
- See Also:
- Constant Field Values
-
-
Method Detail
-
openStream
public InputStream openStream() throws IOException
Description copied from interface:Payload
Creates a new InputStream object of the payload.- Throws:
IOException
-
isRepeatable
public boolean isRepeatable()
Description copied from class:BasePayload
By default we are repeatable.- Specified by:
isRepeatable
in interfacePayload
- Overrides:
isRepeatable
in classBasePayload<Iterable<? extends Part>>
-
release
public void release()
Description copied from class:BasePayload
By default there are no resources to release.
-
-