| |||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
String s = …;
ContentDisposition cd = new ContentDisposition(s);
Based on 7 examples
public class ContentDisposition extends Object
This class represents a MIME ContentDisposition value. It provides methods to parse a ContentDisposition string into individual components and to generate a MIME style ContentDisposition string.
Constructor Summary | |
---|---|
No-arg Constructor. |
|
Constructor that takes a ContentDisposition string. |
|
ContentDisposition(String disposition, ParameterList list) Constructor. |
Method Summary | |
---|---|
String |
Return the disposition value. |
String |
getParameter(String name) Return the specified parameter value. |
ParameterList |
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 |
Set a new ParameterList. |
String |
toString() Retrieve a RFC2045 style string representation of this ContentDisposition. |
Constructor Detail |
---|
public ContentDisposition()
public ContentDisposition(String s) throws ParseException
s
- the ContentDisposition string.ParseException
- if the parse fails.public ContentDisposition(String disposition, ParameterList list)
disposition
- dispositionlist
- ParameterListMethod Detail |
---|
public String getDisposition()
public String getParameter(String name)
null
if this parameter is absent.
name
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
- ParameterListpublic String toString()
null
if
the conversion failed.
toString
in class Object
| |||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |