public class MultipartForm extends BasePayload<Iterable<? extends Part>>
| Modifier and Type | Field and Description |
|---|---|
static String |
BOUNDARY |
contentMetadata, written| Constructor and Description |
|---|
MultipartForm(Part... parts) |
MultipartForm(String boundary,
Iterable<? extends Part> content) |
MultipartForm(String boundary,
Part... parts) |
| Modifier and Type | Method and 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.
|
close, equals, getContentMetadata, getInput, getRawContent, hashCode, isSensitive, setContentMetadata, setSensitive, toStringpublic static final String BOUNDARY
public MultipartForm(Part... parts)
public InputStream openStream() throws IOException
PayloadIOExceptionpublic boolean isRepeatable()
BasePayloadisRepeatable in interface PayloadisRepeatable in class BasePayload<Iterable<? extends Part>>public void release()
BasePayloadCopyright © 2009-2016 The Apache Software Foundation. All Rights Reserved.