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