Module io.helidon.media.multipart
Package io.helidon.media.multipart
Class ContentDisposition.Builder
java.lang.Object
io.helidon.media.multipart.ContentDisposition.Builder
- All Implemented Interfaces:
Builder<ContentDisposition.Builder,
,ContentDisposition> Supplier<ContentDisposition>
- Enclosing class:
- ContentDisposition
public static final class ContentDisposition.Builder
extends Object
implements Builder<ContentDisposition.Builder,ContentDisposition>
Builder class to create
ContentDisposition
instances.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Build the instance from this builder.creationDate
(ZonedDateTime date) Set the content dispositioncreation-date
parameter.Set the content dispositionfilename
parameter.Set the content dispositionmodification-date
parameter.Set the content dispositionname
parameter.Add a new content disposition header parameter.readDate
(ZonedDateTime date) Set the content dispositionread-date
parameter.size
(long size) Set the content dispositionsize
parameter.Set the content disposition type.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
type
Set the content disposition type.- Parameters:
type
- content disposition type- Returns:
- this builder
-
name
Set the content dispositionname
parameter.- Parameters:
name
- control name- Returns:
- this builder
-
filename
Set the content dispositionfilename
parameter.- Parameters:
filename
- filename parameter- Returns:
- this builder
-
creationDate
Set the content dispositioncreation-date
parameter.- Parameters:
date
- date value- Returns:
- this builder
-
modificationDate
Set the content dispositionmodification-date
parameter.- Parameters:
date
- date value- Returns:
- this builder
-
readDate
Set the content dispositionread-date
parameter.- Parameters:
date
- date value- Returns:
- this builder
-
size
Set the content dispositionsize
parameter.- Parameters:
size
- size value- Returns:
- this builder
-
parameter
Add a new content disposition header parameter.- Parameters:
name
- parameter namevalue
- parameter value- Returns:
- this builder
-
build
Description copied from interface:Builder
Build the instance from this builder.- Specified by:
build
in interfaceBuilder<ContentDisposition.Builder,
ContentDisposition> - Returns:
- instance of the built type
-