public class ContentDisposition extends Object
Constructor and Description |
---|
ContentDisposition()
No-arg Constructor.
|
ContentDisposition(String s)
Constructor that takes a ContentDisposition string.
|
ContentDisposition(String disposition,
ParameterList list)
Constructor.
|
Modifier and Type | Method and 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 disposition.
|
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.public ParameterList getParameterList()
public void setDisposition(String disposition)
disposition
- the dispositionpublic void setParameter(String name, String value)
name
- parameter namevalue
- parameter valuepublic void setParameterList(ParameterList list)
list
- ParameterListCopyright © 1996-2013, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.