|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.restlet.data.Disposition
public class Disposition
Describes the presentation of a single entity especially in the case of multipart documents. This is an equivalent of the HTTP "Content-Disposition" header.
| Field Summary | |
|---|---|
static String |
NAME_CREATION_DATE
The creation date parameter name as presented by the RFC 2183. |
static String |
NAME_FILENAME
The filename parameter name as presented by the RFC 2183. |
static String |
NAME_MODIFICATION_DATE
The modification date parameter name as presented by the RFCc 2183. |
static String |
NAME_READ_DATE
The read date parameter name as presented by the RFC 2183. |
static String |
NAME_SIZE
The size parameter name as presented by the RFC 2183. |
static String |
TYPE_ATTACHMENT
Indicates that the part is intended to be separated from the full message. |
static String |
TYPE_INLINE
Indicates that the part is intended to be displayed automatically upon display of the full message. |
static String |
TYPE_NONE
Indicates that the part is not intended to be displayed. |
| Constructor Summary | |
|---|---|
Disposition()
Constructor. |
|
Disposition(String type)
Constructor. |
|
Disposition(String type,
Series<Parameter> parameters)
Constructor. |
|
| Method Summary | |
|---|---|
void |
addDate(String name,
Date value)
Adds a Date parameter. |
String |
getFilename()
Returns the value of the "filename" parameter. |
Series<Parameter> |
getParameters()
Returns the list of disposition parameters. |
String |
getType()
Returns the disposition type. |
void |
setCreationDate(Date value)
Sets the creation date parameter. |
void |
setDate(String name,
Date value)
Sets a Date parameter. |
void |
setFilename(String fileName)
Sets the value of the "filename" parameter. |
void |
setModificationDate(Date value)
Sets the modification date parameter. |
void |
setParameters(Series<Parameter> parameters)
Sets the list of disposition parameters. |
void |
setReadDate(Date value)
Sets the read date parameter. |
void |
setSize(long size)
Sets the value of the "size" parameter. |
void |
setType(String type)
Sets the disposition type. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String NAME_CREATION_DATE
public static final String NAME_FILENAME
public static final String NAME_MODIFICATION_DATE
public static final String NAME_READ_DATE
public static final String NAME_SIZE
public static final String TYPE_ATTACHMENT
public static final String TYPE_INLINE
public static final String TYPE_NONE
| Constructor Detail |
|---|
public Disposition()
public Disposition(String type)
type - The disposition type.
public Disposition(String type,
Series<Parameter> parameters)
type - The disposition type.parameters - The list of disposition parameters.| Method Detail |
|---|
public void addDate(String name,
Date value)
name - The name of the parameter.value - Its value as a date.public String getFilename()
public Series<Parameter> getParameters()
public String getType()
public void setCreationDate(Date value)
value - The creation date.
public void setDate(String name,
Date value)
name - The name of the parameter.value - Its value as a date.public void setFilename(String fileName)
fileName - The file name value.public void setModificationDate(Date value)
value - The modification date.public void setParameters(Series<Parameter> parameters)
parameters - The list of disposition parameters.public void setReadDate(Date value)
value - The read date.public void setSize(long size)
size - The size.public void setType(String type)
type - The disposition type.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||