- java.lang.Object
-
- io.helidon.media.multipart.FileFormParams.Builder
-
- All Implemented Interfaces:
Builder<FileFormParams>
,FormBuilder<FileFormParams.Builder,FileFormParams>
,Supplier<FileFormParams>
- Enclosing interface:
- FileFormParams
public static class FileFormParams.Builder extends Object implements FormBuilder<FileFormParams.Builder,FileFormParams>
Fluent API builder ofFileFormParams
.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FileFormParams.Builder
add(String name, String... values)
Add a new values to specific content disposition name.FileFormParams.Builder
addFile(String name, String fileName, Path file)
Add file with specific name and filename to the form.FileFormParams.Builder
addFile(String name, Path... files)
Add files with specific name to the form.FileFormParams
build()
Build the instance from this builder.
-
-
-
Method Detail
-
build
public FileFormParams build()
Description copied from interface:Builder
Build the instance from this builder.- Specified by:
build
in interfaceBuilder<FileFormParams>
- Returns:
- instance of the built type
-
add
public FileFormParams.Builder add(String name, String... values)
Description copied from interface:FormBuilder
Add a new values to specific content disposition name.- Specified by:
add
in interfaceFormBuilder<FileFormParams.Builder,FileFormParams>
- Parameters:
name
- param namevalues
- param values- Returns:
- updated builder instance
-
addFile
public FileFormParams.Builder addFile(String name, String fileName, Path file)
Add file with specific name and filename to the form.- Parameters:
name
- content disposition namefileName
- content disposition filenamefile
- file path- Returns:
- update builder instance
-
addFile
public FileFormParams.Builder addFile(String name, Path... files)
Add files with specific name to the form. Filename parameter is based on an actual name of the file.- Parameters:
name
- content disposition namefiles
- files- Returns:
- update builder instance
-
-