public interface Multipart extends Formdata
MediaType.MULTIPART_FORMDATA
.Modifier and Type | Method and Description |
---|---|
static Multipart |
create(Context ctx)
Creates a new multipart object.
|
FileUpload |
file(String name)
A file upload that matches the given field name.
|
List<FileUpload> |
files()
All file uploads.
|
List<FileUpload> |
files(String name)
All file uploads that matches the given field name.
|
void |
put(String name,
FileUpload file)
Put/Add a file into this multipart request.
|
get, get, iterator, resolve, resolve, resolve, resolve, size
forEach, spliterator
array, booleanValue, booleanValue, byteValue, byteValue, create, create, doubleValue, doubleValue, floatValue, floatValue, hash, headers, intValue, intValue, isArray, isMissing, isObject, isPresent, isSingle, longValue, longValue, missing, name, to, toEnum, toEnum, toList, toList, toMap, toMultimap, toOptional, toOptional, toSet, toSet, value, value, value, value, valueOrNull
void put(@Nonnull String name, @Nonnull FileUpload file)
name
- HTTP name.file
- File upload.@Nonnull List<FileUpload> files()
multipart/form-data
request.@Nonnull List<FileUpload> files(@Nonnull String name)
multipart/form-data
request.name
- Field name. Please note this is the form field name, not the actual file name.@Nonnull FileUpload file(@Nonnull String name)
multipart/form-data
request.name
- Field name. Please note this is the form field name, not the actual file name.Copyright © 2022. All rights reserved.