javax.mail.internet
Class ContentDisposition
java.lang.Objectjavax.mail.internet.ContentDisposition
public class ContentDisposition
extends java.lang.Object
A MIME Content-Disposition value.
ContentDisposition
public ContentDisposition()
Constructor for an empty Content-Disposition.
ContentDisposition
public ContentDisposition(String s)
throws ParseException Constructor that parses a Content-Disposition value from an RFC 2045
string representation.
s - the Content-Disposition value
ContentDisposition
public ContentDisposition(String disposition,
ParameterList list) Constructor.
disposition - the disposition valuelist - the parameters
getDisposition
public String getDisposition()
Returns the disposition value.
getParameter
public String getParameter(String name)
Returns the specified parameter value, or null if this
parameter is not present.
name - the parameter name
getParameterList
public ParameterList getParameterList()
Returns the parameters, or null if there are no
parameters.
setDisposition
public void setDisposition(String disposition)
Sets the disposition value.
disposition - the disposition value
setParameter
public void setParameter(String name,
String value) Sets the specified parameter.
name - the parameter namevalue - the parameter value
setParameterList
public void setParameterList(ParameterList list)
Sets the parameters.
toString
public String toString()
Returns an RFC 2045 string representation of this Content-Disposition.
© Copyright 2003, 2004
The Free Software Foundation, All rights reserved