java.lang.Object
io.helidon.media.multipart.ContentDisposition
A generic representation of the
Content-Disposition header.
Parameter encoding is not supported, other than
URI percent
encoding in the filename parameter. See URLDecoder.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilder class to createContentDispositioninstances. -
Method Summary
Modifier and TypeMethodDescriptionstatic ContentDisposition.Builderbuilder()Create a new builder instance.Get the value of thecreation-dateparameter that can be used to indicate the date at which the file was created.filename()Get the value of thefilenameparameter that can be used to suggest a filename to be used if the entity is detached and stored in a separate file.Get the value of themodification-dateparameter that can be used to indicate the date at which the file was last modified.name()Get the value of thenameparameter.Get the parameters map.readDate()Get the value of themodification-dateparameter that can be used to indicate the date at which the file was last read.size()Get the value of thesizeparameter that can be used to indicate an approximate size of the file in octets.toString()Convert the content disposition to a string suitable for use as the value of a corresponding HTTP header.type()The content disposition type.
-
Method Details
-
type
The content disposition type.- Returns:
- type, never
null
-
name
Get the value of thenameparameter. In the case of aform-datadisposition type the value is the original field name from the form.- Returns:
Optional<String>, nevernull
-
filename
Get the value of thefilenameparameter that can be used to suggest a filename to be used if the entity is detached and stored in a separate file.- Returns:
Optional<String>, nevernull
-
creationDate
Get the value of thecreation-dateparameter that can be used to indicate the date at which the file was created.- Returns:
Optional<ZonedDateTime>, nevernull
-
modificationDate
Get the value of themodification-dateparameter that can be used to indicate the date at which the file was last modified.- Returns:
Optional<ZonedDateTime>, nevernull
-
readDate
Get the value of themodification-dateparameter that can be used to indicate the date at which the file was last read.- Returns:
Optional<ZonedDateTime>, nevernull
-
size
Get the value of thesizeparameter that can be used to indicate an approximate size of the file in octets.- Returns:
OptionalLong, nevernull
-
parameters
Get the parameters map.- Returns:
- map, never
null
-
toString
Convert the content disposition to a string suitable for use as the value of a corresponding HTTP header. -
builder
Create a new builder instance.- Returns:
- Builder
-