接口 ContentDisposition.Builder
public static interface ContentDisposition.Builder
A mutable builder forContentDisposition
.
方法概要
所有方法 实例方法 抽象方法 已过时的方法 修饰符和类型 方法 说明 ContentDisposition
build()
Build the content disposition.ContentDisposition.Builder
creationDate(ZonedDateTime creationDate)
已过时。since 5.2.3 as per RFC 6266, Apendix 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 the RFC 5987.ContentDisposition.Builder
modificationDate(ZonedDateTime modificationDate)
已过时。since 5.2.3 as per RFC 6266, Apendix 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)
已过时。since 5.2.3 as per RFC 6266, Apendix B, to be removed in a future release.ContentDisposition.Builder
size(Long size)
已过时。since 5.2.3 as per RFC 6266, Apendix B, to be removed in a future release.
方法详细资料
name
ContentDisposition.Builder name(String name)
Set the value of the name parameter.
filename
ContentDisposition.Builder filename(String filename)
Set the value of the filename parameter. The given filename will be formatted as quoted-string, as defined in RFC 2616, section 2.2, and any quote characters within the filename value will be escaped with a backslash, e.g."foo\"bar.txt"
becomes"foo\\\"bar.txt"
.
filename
ContentDisposition.Builder filename(String filename, Charset charset)
Set the value of the filename* that will be encoded as defined in the 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"
requests as per RFC 7578, Section 4.2 and also RFC 5987 itself mentions it does not apply to multipart requests.
size
@Deprecated ContentDisposition.Builder size(Long size)
已过时。since 5.2.3 as per RFC 6266, Apendix B, to be removed in a future release.Set the value of the size parameter.
creationDate
@Deprecated ContentDisposition.Builder creationDate(ZonedDateTime creationDate)
已过时。since 5.2.3 as per RFC 6266, Apendix B, to be removed in a future release.Set the value of the creation-date parameter.
modificationDate
@Deprecated ContentDisposition.Builder modificationDate(ZonedDateTime modificationDate)
已过时。since 5.2.3 as per RFC 6266, Apendix B, to be removed in a future release.Set the value of the modification-date parameter.
readDate
@Deprecated ContentDisposition.Builder readDate(ZonedDateTime readDate)
已过时。since 5.2.3 as per RFC 6266, Apendix B, to be removed in a future release.Set the value of the read-date parameter.
build
ContentDisposition build()
Build the content disposition.