|
Java EE 5 SDK | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.mail.internet.ContentDisposition
public class ContentDisposition
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 | |
---|---|
ContentDisposition()
No-arg Constructor. |
|
ContentDisposition(String s)
Constructor that takes a ContentDisposition string. |
|
ContentDisposition(String disposition,
ParameterList list)
Constructor. |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
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.Method Detail |
---|
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
- ParameterListpublic String toString()
null
if
the conversion failed.
toString
in class Object
|
Java EE 5 SDK | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright 2006 Sun Microsystems, Inc. All rights reserved.