|
Apache JAMES Mime4j 0.6-redhat-2 | |||||||||
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.ContentDispositionField
public class ContentDispositionField
Represents a Content-Disposition
field.
Field Summary | |
---|---|
static String |
DISPOSITION_TYPE_ATTACHMENT
The attachment disposition type. |
static String |
DISPOSITION_TYPE_INLINE
The inline disposition type. |
static String |
PARAM_CREATION_DATE
The name of the creation-date parameter. |
static String |
PARAM_FILENAME
The name of the filename parameter. |
static String |
PARAM_MODIFICATION_DATE
The name of the modification-date parameter. |
static String |
PARAM_READ_DATE
The name of the read-date parameter. |
static String |
PARAM_SIZE
The name of the size parameter. |
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. |
ParseException |
getParseException()
Gets the exception that was raised during parsing of the field value, if any; otherwise, null. |
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, getParser, getRaw, isValidField, parse, parse, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final String DISPOSITION_TYPE_INLINE
inline
disposition type.
public static final String DISPOSITION_TYPE_ATTACHMENT
attachment
disposition type.
public static final String PARAM_FILENAME
filename
parameter.
public static final String PARAM_CREATION_DATE
creation-date
parameter.
public static final String PARAM_MODIFICATION_DATE
modification-date
parameter.
public static final String PARAM_READ_DATE
read-date
parameter.
public static final String PARAM_SIZE
size
parameter.
Method Detail |
---|
public ParseException getParseException()
getParseException
in interface ParsedField
getParseException
in class AbstractField
null
if the field is valid.ParsedField.getParseException()
public String getDispositionType()
public String getParameter(String name)
name
- the name of the parameter to get.
null
if not set.public Map<String,String> getParameters()
public boolean isDispositionType(String dispositionType)
dispositionType
- the disposition type to match against.
true
if the disposition type of this field
matches, false
otherwise.public 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.public 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.public String getFilename()
filename
parameter if set.
filename
parameter value or null
if not set.public Date getCreationDate()
creation-date
parameter if set and
valid.
creation-date
parameter value or
null
if not set or invalid.public Date getModificationDate()
modification-date
parameter if set
and valid.
modification-date
parameter value or
null
if not set or invalid.public Date getReadDate()
read-date
parameter if set and
valid.
read-date
parameter value or null
if not set or invalid.public long getSize()
size
parameter if set and valid.
size
parameter value or -1
if
not set or invalid.
|
Apache JAMES Mime4j 0.6-redhat-2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |