|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ContentDispositionField
Field Summary | |
---|---|
static java.lang.String |
DISPOSITION_TYPE_ATTACHMENT
The attachment disposition type. |
static java.lang.String |
DISPOSITION_TYPE_INLINE
The inline disposition type. |
static java.lang.String |
PARAM_CREATION_DATE
The name of the creation-date parameter. |
static java.lang.String |
PARAM_FILENAME
The name of the filename parameter. |
static java.lang.String |
PARAM_MODIFICATION_DATE
The name of the modification-date parameter. |
static java.lang.String |
PARAM_READ_DATE
The name of the read-date parameter. |
static java.lang.String |
PARAM_SIZE
The name of the size parameter. |
Method Summary | |
---|---|
java.util.Date |
getCreationDate()
Gets the value of the creation-date parameter if set and
valid. |
java.lang.String |
getDispositionType()
Gets the disposition type defined in this Content-Disposition field. |
java.lang.String |
getFilename()
Gets the value of the filename parameter if set. |
java.util.Date |
getModificationDate()
Gets the value of the modification-date parameter if set
and valid. |
java.lang.String |
getParameter(java.lang.String name)
Gets the value of a parameter. |
java.util.Map<java.lang.String,java.lang.String> |
getParameters()
Gets all parameters. |
java.util.Date |
getReadDate()
Gets the value of the read-date parameter if set and
valid. |
long |
getSize()
Gets the value of the size parameter if set and valid. |
boolean |
isAttachment()
Return true if the disposition type of this field is
attachment, false otherwise. |
boolean |
isDispositionType(java.lang.String dispositionType)
Determines if the disposition type of this field matches the given one. |
boolean |
isInline()
Return true if the disposition type of this field is
inline, false otherwise. |
Methods inherited from interface org.apache.james.mime4j.dom.field.ParsedField |
---|
getParseException, isValidField |
Methods inherited from interface org.apache.james.mime4j.stream.Field |
---|
getBody, getName, getRaw |
Field Detail |
---|
static final java.lang.String DISPOSITION_TYPE_INLINE
inline
disposition type.
static final java.lang.String DISPOSITION_TYPE_ATTACHMENT
attachment
disposition type.
static final java.lang.String PARAM_FILENAME
filename
parameter.
static final java.lang.String PARAM_CREATION_DATE
creation-date
parameter.
static final java.lang.String PARAM_MODIFICATION_DATE
modification-date
parameter.
static final java.lang.String PARAM_READ_DATE
read-date
parameter.
static final java.lang.String PARAM_SIZE
size
parameter.
Method Detail |
---|
java.lang.String getDispositionType()
java.lang.String getParameter(java.lang.String name)
name
- the name of the parameter to get.
null
if not set.java.util.Map<java.lang.String,java.lang.String> getParameters()
boolean isDispositionType(java.lang.String dispositionType)
dispositionType
- the disposition type to match against.
true
if the disposition type of this field
matches, false
otherwise.boolean isInline()
true
if the disposition type of this field is
inline, false
otherwise.
true
if the disposition type of this field is
inline, false
otherwise.boolean isAttachment()
true
if the disposition type of this field is
attachment, false
otherwise.
true
if the disposition type of this field is
attachment, false
otherwise.java.lang.String getFilename()
filename
parameter if set.
filename
parameter value or null
if not set.java.util.Date getCreationDate()
creation-date
parameter if set and
valid.
creation-date
parameter value or
null
if not set or invalid.java.util.Date getModificationDate()
modification-date
parameter if set
and valid.
modification-date
parameter value or
null
if not set or invalid.java.util.Date getReadDate()
read-date
parameter if set and
valid.
read-date
parameter value or null
if not set or invalid.long getSize()
size
parameter if set and valid.
size
parameter value or -1
if
not set or invalid.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |