|
||||||||||
| 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.ContentTypeFieldLenientImpl
public class ContentTypeFieldLenientImpl
Represents a Content-Type field.
| Field Summary | |
|---|---|
static FieldParser<ContentTypeField> |
PARSER
|
| Fields inherited from class org.apache.james.mime4j.field.AbstractField |
|---|
monitor, rawField |
| Fields inherited from interface org.apache.james.mime4j.dom.field.ContentTypeField |
|---|
PARAM_BOUNDARY, PARAM_CHARSET, TYPE_MESSAGE_RFC822, TYPE_MULTIPART_DIGEST, TYPE_MULTIPART_PREFIX, TYPE_TEXT_PLAIN |
| Method Summary | |
|---|---|
String |
getBoundary()
Gets the value of the boundary parameter if set. |
String |
getCharset()
Gets the value of the charset parameter if set. |
String |
getMediaType()
Gets the media type defined in this Content-Type field. |
String |
getMimeType()
Gets the MIME type defined in this Content-Type field. |
String |
getParameter(String name)
Gets the value of a parameter. |
Map<String,String> |
getParameters()
Gets all parameters. |
String |
getSubType()
Gets the subtype defined in this Content-Type field. |
boolean |
isMimeType(String mimeType)
Determines if the MIME type of this field matches the given one. |
boolean |
isMultipart()
Determines if the MIME type of this field is multipart/*. |
| 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<ContentTypeField> PARSER
| Method Detail |
|---|
public String getMimeType()
ContentTypeField
getMimeType in interface ContentTypeFieldpublic String getMediaType()
ContentTypeField
getMediaType in interface ContentTypeFieldpublic String getSubType()
ContentTypeField
getSubType in interface ContentTypeFieldpublic String getParameter(String name)
ContentTypeField
getParameter in interface ContentTypeFieldname - the name of the parameter to get.
null if not set.public Map<String,String> getParameters()
ContentTypeField
getParameters in interface ContentTypeFieldpublic boolean isMimeType(String mimeType)
ContentTypeField
isMimeType in interface ContentTypeFieldmimeType - the MIME type to match against.
true if the MIME type of this field matches,
false otherwise.public boolean isMultipart()
ContentTypeFieldmultipart/*.
isMultipart in interface ContentTypeFieldtrue if this field is has a
multipart/* MIME type, false
otherwise.public String getBoundary()
ContentTypeFieldboundary parameter if set.
getBoundary in interface ContentTypeFieldboundary parameter value or null
if not set.public String getCharset()
ContentTypeFieldcharset parameter if set.
getCharset in interface ContentTypeFieldcharset parameter value or null
if not set.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||