|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.mail.internet.ContentDisposition
public class ContentDisposition
A MIME Content-Disposition value.
| Constructor Summary | |
|---|---|
ContentDisposition()
Constructor for an empty Content-Disposition. |
|
ContentDisposition(String s)
Constructor that parses a Content-Disposition value from an RFC 2045 string representation. |
|
ContentDisposition(String disposition,
ParameterList list)
Constructor. |
|
| Method Summary | |
|---|---|
String |
getDisposition()
Returns the disposition value. |
String |
getParameter(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(String disposition)
Sets the disposition value. |
void |
setParameter(String name,
String value)
Sets the specified parameter. |
void |
setParameterList(ParameterList list)
Sets the parameters. |
String |
toString()
Returns an RFC 2045 string representation of this Content-Disposition. |
| 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 - the disposition valuelist - the parameters
public ContentDisposition(String s)
throws ParseException
s - the Content-Disposition value
ParseException - if there was an error in the value| Method Detail |
|---|
public String getDisposition()
public String getParameter(String name)
null if this
parameter is not present.
name - the parameter namepublic ParameterList getParameterList()
null if there are no
parameters.
public void setDisposition(String disposition)
disposition - the disposition value
public void setParameter(String name,
String value)
name - the parameter namevalue - the parameter valuepublic void setParameterList(ParameterList list)
list - the parameterspublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||