Package org.jclouds.io.payloads
Class MultipartForm
- All Implemented Interfaces:
Closeable
,AutoCloseable
,Payload
-
Field Summary
FieldsFields inherited from class org.jclouds.io.payloads.BasePayload
contentMetadata, written
-
Constructor Summary
ConstructorsConstructorDescriptionMultipartForm
(String boundary, Iterable<? extends Part> content) MultipartForm
(String boundary, Part... parts) MultipartForm
(Part... parts) -
Method Summary
Modifier and TypeMethodDescriptionboolean
By default we are repeatable.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 Details
-
BOUNDARY
- See Also:
-
-
Constructor Details
-
MultipartForm
-
MultipartForm
-
MultipartForm
-
-
Method Details
-
openStream
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.
-