public class ContentDispositionFieldLenientImpl extends AbstractField implements ContentDispositionField
Content-Disposition field.| Modifier and Type | Field and Description |
|---|---|
static FieldParser<ContentDispositionField> |
PARSER |
monitor, rawFieldDISPOSITION_TYPE_ATTACHMENT, DISPOSITION_TYPE_INLINE, PARAM_CREATION_DATE, PARAM_FILENAME, PARAM_MODIFICATION_DATE, PARAM_READ_DATE, PARAM_SIZE| Modifier and Type | Method and Description |
|---|---|
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. |
getBody, getName, getParseException, getRaw, getRawField, isValidField, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetParseException, isValidFieldpublic static final FieldParser<ContentDispositionField> PARSER
public String getDispositionType()
ContentDispositionFieldgetDispositionType in interface ContentDispositionFieldpublic String getParameter(String name)
ContentDispositionFieldgetParameter in interface ContentDispositionFieldname - the name of the parameter to get.null if not set.public Map<String,String> getParameters()
ContentDispositionFieldgetParameters in interface ContentDispositionFieldpublic boolean isDispositionType(String dispositionType)
ContentDispositionFieldisDispositionType 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.Copyright © 2004-2012 The Apache Software Foundation. All Rights Reserved.