public static interface ContentDisposition.Builder
ContentDisposition
.Modifier and Type | Method and Description |
---|---|
ContentDisposition |
build()
Build the content disposition.
|
ContentDisposition.Builder |
creationDate(ZonedDateTime creationDate)
Deprecated.
since 5.2.3 as per
RFC 6266, Appendix B,
to be removed in a future release.
|
ContentDisposition.Builder |
filename(String filename)
Set the value of the filename parameter.
|
ContentDisposition.Builder |
filename(String filename,
Charset charset)
Set the value of the
filename that will be encoded as
defined in RFC 5987. |
ContentDisposition.Builder |
modificationDate(ZonedDateTime modificationDate)
Deprecated.
since 5.2.3 as per
RFC 6266, Appendix B,
to be removed in a future release.
|
ContentDisposition.Builder |
name(String name)
Set the value of the name parameter.
|
ContentDisposition.Builder |
readDate(ZonedDateTime readDate)
Deprecated.
since 5.2.3 as per
RFC 6266, Appendix B,
to be removed in a future release.
|
ContentDisposition.Builder |
size(Long size)
Deprecated.
since 5.2.3 as per
RFC 6266, Appendix B,
to be removed in a future release.
|
ContentDisposition.Builder name(String name)
ContentDisposition.Builder filename(String filename)
"foo\"bar.txt"
becomes
"foo\\\"bar.txt"
.ContentDisposition.Builder filename(String filename, Charset charset)
filename
that will be encoded as
defined in RFC 5987. Only the US-ASCII, UTF-8, and ISO-8859-1
charsets are supported.
Note: Do not use this for a
"multipart/form-data"
request since
RFC 7578, Section 4.2
and also RFC 5987 mention it does not apply to multipart requests.
@Deprecated ContentDisposition.Builder size(Long size)
@Deprecated ContentDisposition.Builder creationDate(ZonedDateTime creationDate)
@Deprecated ContentDisposition.Builder modificationDate(ZonedDateTime modificationDate)
@Deprecated ContentDisposition.Builder readDate(ZonedDateTime readDate)
ContentDisposition build()