java.lang.Object
io.helidon.http.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>
Fluent API builder for
ContentDisposition
.-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
The form-data content disposition used byMediaTypes.MULTIPART_FORM_DATA
. -
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.
-
Field Details
-
TYPE_FORM_DATA
The form-data content disposition used byMediaTypes.MULTIPART_FORM_DATA
.- See Also:
-
-
Method Details
-
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
-
type
Set the content disposition type. Defaults to "form-data".- Parameters:
type
- content disposition type- Returns:
- updated 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
-