Module io.helidon.media.multipart
Package io.helidon.media.multipart
Class WriteableBodyPartHeaders.Builder
java.lang.Object
io.helidon.media.multipart.WriteableBodyPartHeaders.Builder
- All Implemented Interfaces:
Builder<WriteableBodyPartHeaders.Builder,
,WriteableBodyPartHeaders> Supplier<WriteableBodyPartHeaders>
- Enclosing class:
- WriteableBodyPartHeaders
public static final class WriteableBodyPartHeaders.Builder
extends Object
implements Builder<WriteableBodyPartHeaders.Builder,WriteableBodyPartHeaders>
Builder class to create
WriteableBodyPartHeaders
instances.-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Build the instance from this builder.contentDisposition
(ContentDisposition contentDisp) Add aContent-Disposition
header.contentType
(MediaType contentType) Add aContent-Type
header.Filename which will be used inContentDisposition
.Add a new header.Add a new header.Add new headers.Name which will be used inContentDisposition
.
-
Method Details
-
header
Add a new header.- Parameters:
name
- header namevalue
- header value- Returns:
- this builder
-
header
Add a new header.- Parameters:
name
- header namevalues
- header values- Returns:
- this builder
-
headers
Add new headers.- Parameters:
headers
- headers map- Returns:
- this builder
-
contentType
Add aContent-Type
header.- Parameters:
contentType
- value for theContent-Type
header- Returns:
- this builder
-
contentDisposition
Add aContent-Disposition
header.- Parameters:
contentDisp
- content disposition- Returns:
- this builder
-
name
Name which will be used inContentDisposition
.
This value will be ignored if an actual instance ofContentDisposition
is set.- Parameters:
name
- content disposition name parameter- Returns:
- this builder
-
filename
Filename which will be used inContentDisposition
.
This value will be ignored if an actual instance ofContentDisposition
is set.- Parameters:
fileName
- content disposition filename parameter- Returns:
- this builder
-
build
Description copied from interface:Builder
Build the instance from this builder.- Specified by:
build
in interfaceBuilder<WriteableBodyPartHeaders.Builder,
WriteableBodyPartHeaders> - Returns:
- instance of the built type
-