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>
,Supplier<ContentDisposition>
- Enclosing class:
- ContentDisposition
public static final class ContentDisposition.Builder extends Object implements Builder<ContentDisposition>
Builder class to createContentDisposition
instances.
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ContentDisposition
build()
Build the instance from this builder.ContentDisposition.Builder
creationDate(ZonedDateTime date)
Set the content dispositioncreation-date
parameter.ContentDisposition.Builder
filename(String filename)
Set the content dispositionfilename
parameter.ContentDisposition.Builder
modificationDate(ZonedDateTime date)
Set the content dispositionmodification-date
parameter.ContentDisposition.Builder
name(String name)
Set the content dispositionname
parameter.ContentDisposition.Builder
parameter(String name, String value)
Add a new content disposition header parameter.ContentDisposition.Builder
readDate(ZonedDateTime date)
Set the content dispositionread-date
parameter.ContentDisposition.Builder
size(long size)
Set the content dispositionsize
parameter.ContentDisposition.Builder
type(String type)
Set the content disposition type.
-
-
-
Method Detail
-
type
public ContentDisposition.Builder type(String type)
Set the content disposition type.- Parameters:
type
- content disposition type- Returns:
- this builder
-
name
public ContentDisposition.Builder name(String name)
Set the content dispositionname
parameter.- Parameters:
name
- control name- Returns:
- this builder
-
filename
public ContentDisposition.Builder filename(String filename)
Set the content dispositionfilename
parameter.- Parameters:
filename
- filename parameter- Returns:
- this builder
-
creationDate
public ContentDisposition.Builder creationDate(ZonedDateTime date)
Set the content dispositioncreation-date
parameter.- Parameters:
date
- date value- Returns:
- this builder
-
modificationDate
public ContentDisposition.Builder modificationDate(ZonedDateTime date)
Set the content dispositionmodification-date
parameter.- Parameters:
date
- date value- Returns:
- this builder
-
readDate
public ContentDisposition.Builder readDate(ZonedDateTime date)
Set the content dispositionread-date
parameter.- Parameters:
date
- date value- Returns:
- this builder
-
size
public ContentDisposition.Builder size(long size)
Set the content dispositionsize
parameter.- Parameters:
size
- size value- Returns:
- this builder
-
parameter
public ContentDisposition.Builder parameter(String name, String value)
Add a new content disposition header parameter.- Parameters:
name
- parameter namevalue
- parameter value- Returns:
- this builder
-
build
public ContentDisposition build()
Description copied from interface:Builder
Build the instance from this builder.- Specified by:
build
in interfaceBuilder<ContentDisposition>
- Returns:
- instance of the built type
-
-