|
||||||||||
| 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 | |
|---|---|
Date |
getCreationDate()
Gets the value of the creation-date parameter if set and
valid. |
String |
getDispositionType()
Gets the disposition type defined in this Content-Disposition field. |
String |
getFilename()
Gets the value of the filename parameter if set. |
Date |
getModificationDate()
Gets the value of the modification-date parameter if set
and valid. |
String |
getParameter(String name)
Gets the value of a parameter. |
Map<String,String> |
getParameters()
Gets all parameters. |
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(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 String getDispositionType()
ContentDispositionField
getDispositionType in interface ContentDispositionFieldpublic String getParameter(String name)
ContentDispositionField
getParameter in interface ContentDispositionFieldname - the name of the parameter to get.
null if not set.public Map<String,String> getParameters()
ContentDispositionField
getParameters in interface ContentDispositionFieldpublic boolean isDispositionType(String dispositionType)
ContentDispositionField
isDispositionType in interface ContentDispositionFielddispositionType - the disposition type to match against.
true if the disposition type of this field
matches, false otherwise.public boolean isInline()
ContentDispositionFieldtrue if the disposition type of this field is
inline, false otherwise.
isInline in interface ContentDispositionFieldtrue if the disposition type of this field is
inline, false otherwise.public boolean isAttachment()
ContentDispositionFieldtrue if the disposition type of this field is
attachment, false otherwise.
isAttachment in interface ContentDispositionFieldtrue if the disposition type of this field is
attachment, false otherwise.public String getFilename()
ContentDispositionFieldfilename parameter if set.
getFilename in interface ContentDispositionFieldfilename parameter value or null
if not set.public Date getCreationDate()
ContentDispositionFieldcreation-date parameter if set and
valid.
getCreationDate in interface ContentDispositionFieldcreation-date parameter value or
null if not set or invalid.public Date getModificationDate()
ContentDispositionFieldmodification-date parameter if set
and valid.
getModificationDate in interface ContentDispositionFieldmodification-date parameter value or
null if not set or invalid.public Date getReadDate()
ContentDispositionFieldread-date parameter if set and
valid.
getReadDate in interface ContentDispositionFieldread-date parameter value or null
if not set or invalid.public long getSize()
ContentDispositionFieldsize parameter if set and valid.
getSize in interface ContentDispositionFieldsize 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 | |||||||||