Package com.linecorp.armeria.common
Class ContentDispositionBuilder
java.lang.Object
com.linecorp.armeria.common.ContentDispositionBuilder
A builder class for creating
ContentDisposition
.-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Returns a newly-createdContentDisposition
based on the properties of this builder.Sets the value of thefilename
parameter.Sets the value of thefilename*
that will be encoded as defined in the RFC 5987.Sets the value of thename
parameter.
-
Method Details
-
name
Sets the value of thename
parameter. -
filename
Sets the value of thefilename
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
Sets the value of thefilename*
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. -
build
Returns a newly-createdContentDisposition
based on the properties of this builder.
-