Package org.restlet.data
Class Disposition
java.lang.Object
org.restlet.data.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.
- Author:
- Thierry Boileau
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe creation date parameter name as presented by the RFC 2183.static final StringThe filename parameter name as presented by the RFC 2183.static final StringThe modification date parameter name as presented by the RFCc 2183.static final StringThe read date parameter name as presented by the RFC 2183.static final StringThe size parameter name as presented by the RFC 2183.static final StringIndicates that the part is intended to be separated from the full message.static final StringIndicates that the part is intended to be displayed automatically upon display of the full message.static final StringIndicates that the part is not intended to be displayed. -
Constructor Summary
ConstructorsConstructorDescriptionConstructor.Disposition(String type) Constructor.Disposition(String type, Series<Parameter> parameters) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionvoidAdds a Date parameter.Returns the value of the "filename" parameter.Returns the list of disposition parameters.getType()Returns the disposition type.voidsetCreationDate(Date value) Sets the creation date parameter.voidSets a Date parameter.voidsetFilename(String fileName) Sets the value of the "filename" parameter.voidsetModificationDate(Date value) Sets the modification date parameter.voidsetParameters(Series<Parameter> parameters) Sets the list of disposition parameters.voidsetReadDate(Date value) Sets the read date parameter.voidsetSize(long size) Sets the value of the "size" parameter.voidSets the disposition type.
-
Field Details
-
NAME_CREATION_DATE
The creation date parameter name as presented by the RFC 2183.- See Also:
-
NAME_FILENAME
The filename parameter name as presented by the RFC 2183.- See Also:
-
NAME_MODIFICATION_DATE
The modification date parameter name as presented by the RFCc 2183.- See Also:
-
NAME_READ_DATE
The read date parameter name as presented by the RFC 2183.- See Also:
-
NAME_SIZE
The size parameter name as presented by the RFC 2183.- See Also:
-
TYPE_ATTACHMENT
Indicates that the part is intended to be separated from the full message.- See Also:
-
TYPE_INLINE
Indicates that the part is intended to be displayed automatically upon display of the full message.- See Also:
-
TYPE_NONE
Indicates that the part is not intended to be displayed.- See Also:
-
-
Constructor Details
-
Disposition
public Disposition()Constructor. Instantiated with the TYPE_NONE type. -
Disposition
Constructor.- Parameters:
type- The disposition type.
-
Disposition
Constructor.- Parameters:
type- The disposition type.parameters- The list of disposition parameters.
-
-
Method Details
-
addDate
Adds a Date parameter.- Parameters:
name- The name of the parameter.value- Its value as a date.
-
getFilename
Returns the value of the "filename" parameter.- Returns:
- The value of the "filename" parameter.
-
getParameters
Returns the list of disposition parameters.- Returns:
- The list of disposition parameters.
-
getType
Returns the disposition type.- Returns:
- The disposition type.
-
setCreationDate
Sets the creation date parameter.- Parameters:
value- The creation date.
-
setDate
Sets a Date parameter.- Parameters:
name- The name of the parameter.value- Its value as a date.
-
setFilename
Sets the value of the "filename" parameter.- Parameters:
fileName- The file name value.
-
setModificationDate
Sets the modification date parameter.- Parameters:
value- The modification date.
-
setParameters
Sets the list of disposition parameters.- Parameters:
parameters- The list of disposition parameters.
-
setReadDate
Sets the read date parameter.- Parameters:
value- The read date.
-
setSize
public void setSize(long size) Sets the value of the "size" parameter.- Parameters:
size- The size.
-
setType
Sets the disposition type.- Parameters:
type- The disposition type.
-