Methods Summary |
---|
public java.lang.String | getDisposition()Return the disposition value.
return disposition;
|
public java.lang.String | getParameter(java.lang.String name)Return the specified parameter value. Returns null
if this parameter is absent.
if (list == null)
return null;
return list.get(name);
|
public javax.mail.internet.ParameterList | getParameterList()Return a ParameterList object that holds all the available
parameters. Returns null if no parameters are available.
return list;
|
public void | setDisposition(java.lang.String disposition)Set the disposition. Replaces the existing disposition.
this.disposition = disposition;
|
public void | setParameter(java.lang.String name, java.lang.String value)Set the specified parameter. If this parameter already exists,
it is replaced by this new value.
if (list == null)
list = new ParameterList();
list.set(name, value);
|
public void | setParameterList(javax.mail.internet.ParameterList list)Set a new ParameterList.
this.list = list;
|
public java.lang.String | toString()Retrieve a RFC2045 style string representation of
this ContentDisposition. Returns null if
the conversion failed.
if (disposition == null)
return null;
if (list == null)
return disposition;
StringBuffer sb = new StringBuffer(disposition);
// append the parameter list
// use the length of the string buffer + the length of
// the header name formatted as follows "Content-Disposition: "
sb.append(list.toString(sb.length() + 21));
return sb.toString();
|