public class ContentDisposition extends Object
| Constructor | Description |
|---|---|
ContentDisposition() |
No-arg Constructor.
|
ContentDisposition(String s) |
Constructor that takes a ContentDisposition string.
|
ContentDisposition(String disposition,
ParameterList list) |
Constructor.
|
| Modifier and Type | Method | Description |
|---|---|---|
String |
getDisposition() |
Return the disposition value.
|
String |
getParameter(String name) |
Return the specified parameter value.
|
ParameterList |
getParameterList() |
Return a ParameterList object that holds all the available
parameters.
|
void |
setDisposition(String disposition) |
Set the primary type.
|
void |
setParameter(String name,
String value) |
Set the specified parameter.
|
void |
setParameterList(ParameterList list) |
Set a new ParameterList.
|
String |
toString() |
Retrieve a RFC2045 style string representation of
this ContentDisposition.
|
public ContentDisposition()
public ContentDisposition(String disposition, ParameterList list)
disposition - dispositionlist - ParameterListpublic ContentDisposition(String s) throws ParseException
s - the ContentDisposition string.ParseException - if the parse fails.public String getDisposition()
public String getParameter(String name)
null
if this parameter is absent.name - parameter name.public ParameterList getParameterList()
public void setDisposition(String disposition)
disposition - disposition valuepublic void setParameter(String name, String value)
name - parameter namevalue - parameter valuepublic void setParameterList(ParameterList list)
list - ParameterListCopyright © 2018 Oracle. All rights reserved.