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.lang.String |
filename |
private java.lang.String |
name |
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 |
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 |
name(java.lang.String name)
Set the value of the name parameter
|
ContentDisposition.Builder |
size(java.lang.Long size)
Set the value of the size parameter
|
private java.lang.String type
private java.lang.String name
private java.lang.String filename
private java.nio.charset.Charset charset
private java.lang.Long size
public ContentDisposition.Builder name(java.lang.String name)
ContentDisposition.Builder
name
in interface ContentDisposition.Builder
public ContentDisposition.Builder filename(java.lang.String filename)
ContentDisposition.Builder
filename
in interface ContentDisposition.Builder
public ContentDisposition.Builder filename(java.lang.String filename, java.nio.charset.Charset charset)
ContentDisposition.Builder
filename
in interface ContentDisposition.Builder
public ContentDisposition.Builder size(java.lang.Long size)
ContentDisposition.Builder
size
in interface ContentDisposition.Builder
public ContentDisposition build()
ContentDisposition.Builder
build
in interface ContentDisposition.Builder