T - The file upload typepublic interface MultipartDataFactory<T>
| Modifier and Type | Method and Description | 
|---|---|
T | 
createAttribute(String name,
               String value)
Creates an attribute. 
 | 
T | 
createFileUpload(String name,
                String filename,
                MediaType contentType,
                String encoding,
                Charset charset,
                long length)
Creates a file upload. 
 | 
void | 
setContent(T fileUploadObject,
          Object content)
Sets the content on the file upload object. 
 | 
@NonNull T createFileUpload(@NonNull String name, @NonNull String filename, @NonNull MediaType contentType, @Nullable String encoding, @Nullable 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 String name, @NonNull String value)
name - The name of the attributevalue - The value of the attributevoid setContent(T fileUploadObject, Object content) throws IOException
fileUploadObject - The file upload objectcontent - The contentIOException - When the content cannot be set