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
Modifier and TypeClassDescriptionstatic final class
Builder class to createContentDisposition
instances. -
Method Summary
Modifier and TypeMethodDescriptionstatic ContentDisposition.Builder
builder()
Create a new builder instance.Get the value of thecreation-date
parameter that can be used to indicate the date at which the file was created.filename()
Get the value of thefilename
parameter 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-date
parameter that can be used to indicate the date at which the file was last modified.name()
Get the value of thename
parameter.Get the parameters map.readDate()
Get the value of themodification-date
parameter that can be used to indicate the date at which the file was last read.size()
Get the value of thesize
parameter 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 thename
parameter. In the case of aform-data
disposition type the value is the original field name from the form.- Returns:
Optional<String>
, nevernull
-
filename
Get the value of thefilename
parameter 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-date
parameter that can be used to indicate the date at which the file was created.- Returns:
Optional<ZonedDateTime>
, nevernull
-
modificationDate
Get the value of themodification-date
parameter 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-date
parameter that can be used to indicate the date at which the file was last read.- Returns:
Optional<ZonedDateTime>
, nevernull
-
size
Get the value of thesize
parameter 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
-