private static class ContentDisposition.BuilderImpl extends java.lang.Object implements ContentDisposition.Builder
| Modifier and Type | Field and Description |
|---|---|
private java.nio.charset.Charset |
charset |
private java.time.ZonedDateTime |
creationDate |
private java.lang.String |
filename |
private java.time.ZonedDateTime |
modificationDate |
private java.lang.String |
name |
private java.time.ZonedDateTime |
readDate |
private java.lang.Long |
size |
private java.lang.String |
type |
| Constructor and Description |
|---|
BuilderImpl(java.lang.String type) |
| Modifier and Type | Method and Description |
|---|---|
ContentDisposition |
build()
Build the content disposition
|
ContentDisposition.Builder |
creationDate(java.time.ZonedDateTime creationDate)
Set the value of the creation-date parameter.
|
ContentDisposition.Builder |
filename(java.lang.String filename)
Set the value of the filename parameter
|
ContentDisposition.Builder |
filename(java.lang.String filename,
java.nio.charset.Charset charset)
Set the value of the filename* that will be encoded as
defined in the RFC 5987.
|
ContentDisposition.Builder |
modificationDate(java.time.ZonedDateTime modificationDate)
Set the value of the modification-date parameter.
|
ContentDisposition.Builder |
name(java.lang.String name)
Set the value of the name parameter
|
ContentDisposition.Builder |
readDate(java.time.ZonedDateTime readDate)
Set the value of the read-date parameter.
|
ContentDisposition.Builder |
size(java.lang.Long size)
Set the value of the size parameter
|
private java.lang.String type
@Nullable private java.lang.String name
@Nullable private java.lang.String filename
@Nullable private java.nio.charset.Charset charset
@Nullable private java.lang.Long size
@Nullable private java.time.ZonedDateTime creationDate
@Nullable private java.time.ZonedDateTime modificationDate
@Nullable private java.time.ZonedDateTime readDate
public ContentDisposition.Builder name(java.lang.String name)
ContentDisposition.Buildername in interface ContentDisposition.Builderpublic ContentDisposition.Builder filename(java.lang.String filename)
ContentDisposition.Builderfilename in interface ContentDisposition.Builderpublic ContentDisposition.Builder filename(java.lang.String filename, java.nio.charset.Charset charset)
ContentDisposition.BuilderNote: Do not use this for a
"multipart/form-data" requests as per
RFC 7578, Section 4.2
and also RFC 5987 itself mentions it does not apply to multipart
requests.
filename in interface ContentDisposition.Builderpublic ContentDisposition.Builder size(java.lang.Long size)
ContentDisposition.Buildersize in interface ContentDisposition.Builderpublic ContentDisposition.Builder creationDate(java.time.ZonedDateTime creationDate)
ContentDisposition.BuildercreationDate in interface ContentDisposition.Builderpublic ContentDisposition.Builder modificationDate(java.time.ZonedDateTime modificationDate)
ContentDisposition.BuildermodificationDate in interface ContentDisposition.Builderpublic ContentDisposition.Builder readDate(java.time.ZonedDateTime readDate)
ContentDisposition.BuilderreadDate in interface ContentDisposition.Builderpublic ContentDisposition build()
ContentDisposition.Builderbuild in interface ContentDisposition.Builder