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 SummaryFieldsModifier and TypeFieldDescriptionstatic final StringThe form-data content disposition used byMediaTypes.MULTIPART_FORM_DATA.
- 
Method SummaryModifier and TypeMethodDescriptionbuild()Build the instance from this builder.creationDate(ZonedDateTime date) Set the content dispositioncreation-dateparameter.Set the content dispositionfilenameparameter.Set the content dispositionmodification-dateparameter.Set the content dispositionnameparameter.Add a new content disposition header parameter.readDate(ZonedDateTime date) Set the content dispositionread-dateparameter.size(long size) Set the content dispositionsizeparameter.Set the content disposition type.
- 
Field Details- 
TYPE_FORM_DATAThe form-data content disposition used byMediaTypes.MULTIPART_FORM_DATA.- See Also:
 
 
- 
- 
Method Details- 
buildDescription copied from interface:BuilderBuild the instance from this builder.- Specified by:
- buildin interface- Builder<ContentDisposition.Builder,- ContentDisposition> 
- Returns:
- instance of the built type
 
- 
typeSet the content disposition type. Defaults to "form-data".- Parameters:
- type- content disposition type
- Returns:
- updated builder
 
- 
nameSet the content dispositionnameparameter.- Parameters:
- name- control name
- Returns:
- this builder
 
- 
filenameSet the content dispositionfilenameparameter.- Parameters:
- filename- filename parameter
- Returns:
- this builder
 
- 
creationDateSet the content dispositioncreation-dateparameter.- Parameters:
- date- date value
- Returns:
- this builder
 
- 
modificationDateSet the content dispositionmodification-dateparameter.- Parameters:
- date- date value
- Returns:
- this builder
 
- 
readDateSet the content dispositionread-dateparameter.- Parameters:
- date- date value
- Returns:
- this builder
 
- 
sizeSet the content dispositionsizeparameter.- Parameters:
- size- size value
- Returns:
- this builder
 
- 
parameterAdd a new content disposition header parameter.- Parameters:
- name- parameter name
- value- parameter value
- Returns:
- this builder
 
 
-