T - The file upload typepublic interface MultipartDataFactory<T>
| Modifier and Type | Method and Description |
|---|---|
T |
createAttribute(java.lang.String name,
java.lang.String value)
Creates an attribute.
|
T |
createFileUpload(java.lang.String name,
java.lang.String filename,
MediaType contentType,
java.lang.String encoding,
java.nio.charset.Charset charset,
long length)
Creates a file upload.
|
void |
setContent(T fileUploadObject,
java.lang.Object content)
Sets the content on the file upload object.
|
@NonNull T createFileUpload(@NonNull java.lang.String name, @NonNull java.lang.String filename, @NonNull MediaType contentType, @Nullable java.lang.String encoding, @Nullable java.nio.charset.Charset charset, long length)
name - The name of the filefilename - The file namecontentType - The content typeencoding - The encodingcharset - The charsetlength - The length@NonNull T createAttribute(@NonNull java.lang.String name, @NonNull java.lang.String value)
name - The name of the attributevalue - The value of the attributevoid setContent(T fileUploadObject, java.lang.Object content) throws java.io.IOException
fileUploadObject - The file upload objectcontent - The contentjava.io.IOException - When the content cannot be set