public class Disposition
extends java.lang.Object
| Modifier and Type | Field and Description | 
|---|---|
| static java.lang.String | NAME_CREATION_DATEThe creation date parameter name as presented by the RFC 2183. | 
| static java.lang.String | NAME_FILENAMEThe filename parameter name as presented by the RFC 2183. | 
| static java.lang.String | NAME_MODIFICATION_DATEThe modification date parameter name as presented by the RFCc 2183. | 
| static java.lang.String | NAME_READ_DATEThe read date parameter name as presented by the RFC 2183. | 
| static java.lang.String | NAME_SIZEThe size parameter name as presented by the RFC 2183. | 
| static java.lang.String | TYPE_ATTACHMENTIndicates that the part is intended to be separated from the full
 message. | 
| static java.lang.String | TYPE_INLINEIndicates that the part is intended to be displayed automatically upon
 display of the full message. | 
| static java.lang.String | TYPE_NONEIndicates that the part is not intended to be displayed. | 
| Constructor and Description | 
|---|
| Disposition()Constructor. | 
| Disposition(java.lang.String type)Constructor. | 
| Disposition(java.lang.String type,
           Series<Parameter> parameters)Constructor. | 
| Modifier and Type | Method and Description | 
|---|---|
| void | addDate(java.lang.String name,
       java.util.Date value)Adds a Date parameter. | 
| java.lang.String | getFilename()Returns the value of the "filename" parameter. | 
| Series<Parameter> | getParameters()Returns the list of disposition parameters. | 
| java.lang.String | getType()Returns the disposition type. | 
| void | setCreationDate(java.util.Date value)Sets the creation date parameter. | 
| void | setDate(java.lang.String name,
       java.util.Date value)Sets a Date parameter. | 
| void | setFilename(java.lang.String fileName)Sets the value of the "filename" parameter. | 
| void | setModificationDate(java.util.Date value)Sets the modification date parameter. | 
| void | setParameters(Series<Parameter> parameters)Sets the list of disposition parameters. | 
| void | setReadDate(java.util.Date value)Sets the read date parameter. | 
| void | setSize(long size)Sets the value of the "size" parameter. | 
| void | setType(java.lang.String type)Sets the disposition type. | 
public static final java.lang.String NAME_CREATION_DATE
public static final java.lang.String NAME_FILENAME
public static final java.lang.String NAME_MODIFICATION_DATE
public static final java.lang.String NAME_READ_DATE
public static final java.lang.String NAME_SIZE
public static final java.lang.String TYPE_ATTACHMENT
public static final java.lang.String TYPE_INLINE
public static final java.lang.String TYPE_NONE
public Disposition()
public Disposition(java.lang.String type)
type - The disposition type.public void addDate(java.lang.String name,
                    java.util.Date value)
name - The name of the parameter.value - Its value as a date.public java.lang.String getFilename()
public Series<Parameter> getParameters()
public java.lang.String getType()
public void setCreationDate(java.util.Date value)
value - The creation date.public void setDate(java.lang.String name,
                    java.util.Date value)
name - The name of the parameter.value - Its value as a date.public void setFilename(java.lang.String fileName)
fileName - The file name value.public void setModificationDate(java.util.Date value)
value - The modification date.public void setParameters(Series<Parameter> parameters)
parameters - The list of disposition parameters.public void setReadDate(java.util.Date value)
value - The read date.public void setSize(long size)
size - The size.public void setType(java.lang.String type)
type - The disposition type.Copyright © 2005-2024 Restlet.