|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.james.mime4j.field.AbstractField
org.apache.james.mime4j.field.ContentDispositionFieldLenientImpl
public class ContentDispositionFieldLenientImpl
Represents a Content-Disposition
field.
Field Summary | |
---|---|
static FieldParser<ContentDispositionField> |
PARSER
|
Fields inherited from class org.apache.james.mime4j.field.AbstractField |
---|
monitor, rawField |
Fields inherited from interface org.apache.james.mime4j.dom.field.ContentDispositionField |
---|
DISPOSITION_TYPE_ATTACHMENT, DISPOSITION_TYPE_INLINE, PARAM_CREATION_DATE, PARAM_FILENAME, PARAM_MODIFICATION_DATE, PARAM_READ_DATE, PARAM_SIZE |
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 class org.apache.james.mime4j.field.AbstractField |
---|
getBody, getName, getParseException, getRaw, getRawField, isValidField, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
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 |
---|
public static final FieldParser<ContentDispositionField> PARSER
Method Detail |
---|
public java.lang.String getDispositionType()
ContentDispositionField
getDispositionType
in interface ContentDispositionField
public java.lang.String getParameter(java.lang.String name)
ContentDispositionField
getParameter
in interface ContentDispositionField
name
- the name of the parameter to get.
null
if not set.public java.util.Map<java.lang.String,java.lang.String> getParameters()
ContentDispositionField
getParameters
in interface ContentDispositionField
public boolean isDispositionType(java.lang.String dispositionType)
ContentDispositionField
isDispositionType
in interface ContentDispositionField
dispositionType
- the disposition type to match against.
true
if the disposition type of this field
matches, false
otherwise.public boolean isInline()
ContentDispositionField
true
if the disposition type of this field is
inline, false
otherwise.
isInline
in interface ContentDispositionField
true
if the disposition type of this field is
inline, false
otherwise.public boolean isAttachment()
ContentDispositionField
true
if the disposition type of this field is
attachment, false
otherwise.
isAttachment
in interface ContentDispositionField
true
if the disposition type of this field is
attachment, false
otherwise.public java.lang.String getFilename()
ContentDispositionField
filename
parameter if set.
getFilename
in interface ContentDispositionField
filename
parameter value or null
if not set.public java.util.Date getCreationDate()
ContentDispositionField
creation-date
parameter if set and
valid.
getCreationDate
in interface ContentDispositionField
creation-date
parameter value or
null
if not set or invalid.public java.util.Date getModificationDate()
ContentDispositionField
modification-date
parameter if set
and valid.
getModificationDate
in interface ContentDispositionField
modification-date
parameter value or
null
if not set or invalid.public java.util.Date getReadDate()
ContentDispositionField
read-date
parameter if set and
valid.
getReadDate
in interface ContentDispositionField
read-date
parameter value or null
if not set or invalid.public long getSize()
ContentDispositionField
size
parameter if set and valid.
getSize
in interface ContentDispositionField
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 |