| Modifier and Type | Class and Description |
|---|---|
static interface |
ContentDisposition.Builder
A mutable builder for
ContentDisposition. |
| Modifier and Type | Method and Description |
|---|---|
static ContentDisposition.Builder |
builder(String type)
Return a builder for a
ContentDisposition. |
static ContentDisposition |
empty() |
boolean |
equals(Object o) |
Charset |
getCharset()
Return the charset defined in filename* parameter, or
null if not defined. |
String |
getFilename()
Return the value of the filename parameter (or the value of the
filename* one decoded as defined in the RFC 5987), or
null if not defined. |
String |
getName()
Return the value of the name parameter, or
null if not defined. |
Long |
getSize()
Return the value of the size parameter, or
null if not defined. |
String |
getType()
Return the disposition type, like for example inline, attachment,
form-data, or
null if not defined. |
int |
hashCode() |
static ContentDisposition |
parse(String contentDisposition)
Parse a Content-Disposition header value as defined in RFC 2183.
|
String |
toString()
Return the header value for this content disposition as defined in RFC 2183.
|
public static ContentDisposition.Builder builder(String type)
ContentDisposition.type - the disposition type like for example inline, attachment,
or form-datapublic static ContentDisposition empty()
public String getType()
null if not defined.public String getName()
null if not defined.public String getFilename()
null if not defined.public Charset getCharset()
null if not defined.public Long getSize()
null if not defined.public static ContentDisposition parse(String contentDisposition)
contentDisposition - the Content-Disposition header valuetoString()public String toString()
toString in class Objectparse(String)