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, toString
public static final String BOUNDARY
public MultipartForm(Part... parts)
public InputStream openStream() throws IOException
Payload
IOException
public boolean isRepeatable()
BasePayload
isRepeatable
in interface Payload
isRepeatable
in class BasePayload<Iterable<? extends Part>>
public void release()
BasePayload
Copyright © 2009-2016 The Apache Software Foundation. All Rights Reserved.