javax.mail.internet
public class ContentDisposition extends Object
Version: 1.3
| Constructor Summary | |
|---|---|
| ContentDisposition()
Constructor for an empty Content-Disposition. | |
| ContentDisposition(String disposition, ParameterList list)
Constructor. | |
| ContentDisposition(String s)
Constructor that parses a Content-Disposition value from an RFC 2045
string representation. | |
| 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. |
Parameters: disposition the disposition value list the parameters
Parameters: s the Content-Disposition value
Throws: ParseException if there was an error in the value
null if this
parameter is not present.Parameters: name the parameter name
null if there are no
parameters.Parameters: disposition the disposition value
Parameters: name the parameter name value the parameter value
Parameters: list the parameters