public class ContentDisposition
extends java.lang.Object
| Constructor and Description |
|---|
ContentDisposition ()
Constructor for an empty Content-Disposition.
|
ContentDisposition (java.lang.String s)
Constructor that parses a Content-Disposition value from an RFC 2045
string representation.
|
ContentDisposition (java.lang.String disposition,
ParameterList list)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getDisposition ()
Returns the disposition value.
|
java.lang.String |
getParameter (java.lang.String name)
Returns the specified parameter value, or
null if this
parameter is not present. |
ParameterList |
getParameterList ()
Returns the parameters, or
null if there are no
parameters. |
void |
setDisposition (java.lang.String disposition)
Sets the disposition value.
|
void |
setParameter (java.lang.String name,
java.lang.String value)
Sets the specified parameter.
|
void |
setParameterList (ParameterList list)
Sets the parameters.
|
java.lang.String |
toString ()
Returns an RFC 2045 string representation of this Content-Disposition.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic ContentDisposition()
public ContentDisposition(java.lang.String disposition, ParameterList list)
disposition - the disposition valuelist - the parameterspublic ContentDisposition(java.lang.String s) throws ParseException
s - the Content-Disposition valueParseException - if there was an error in the valuepublic java.lang.String getDisposition()
public java.lang.String getParameter(java.lang.String name)
null if this
parameter is not present.name - the parameter namepublic ParameterList getParameterList()
null if there are no
parameters.public void setDisposition(java.lang.String disposition)
disposition - the disposition valuepublic void setParameter(java.lang.String name, java.lang.String value)
name - the parameter namevalue - the parameter valuepublic void setParameterList(ParameterList list)
list - the parameterspublic java.lang.String toString()
toString in class java.lang.Object