|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ContentTypeField
Field Summary | |
---|---|
static java.lang.String |
PARAM_BOUNDARY
The name of the boundary parameter. |
static java.lang.String |
PARAM_CHARSET
The name of the charset parameter. |
static java.lang.String |
TYPE_MESSAGE_RFC822
The message/rfc822 MIME type. |
static java.lang.String |
TYPE_MULTIPART_DIGEST
The multipart/digest MIME type. |
static java.lang.String |
TYPE_MULTIPART_PREFIX
The prefix of all multipart MIME types. |
static java.lang.String |
TYPE_TEXT_PLAIN
The text/plain MIME type. |
Method Summary | |
---|---|
java.lang.String |
getBoundary()
Gets the value of the boundary parameter if set. |
java.lang.String |
getCharset()
Gets the value of the charset parameter if set. |
java.lang.String |
getMediaType()
Gets the media type defined in this Content-Type field. |
java.lang.String |
getMimeType()
Gets the MIME type defined in this Content-Type field. |
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.lang.String |
getSubType()
Gets the subtype defined in this Content-Type field. |
boolean |
isMimeType(java.lang.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 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 |
---|
static final java.lang.String TYPE_MULTIPART_PREFIX
multipart
MIME types.
static final java.lang.String TYPE_MULTIPART_DIGEST
multipart/digest
MIME type.
static final java.lang.String TYPE_TEXT_PLAIN
text/plain
MIME type.
static final java.lang.String TYPE_MESSAGE_RFC822
message/rfc822
MIME type.
static final java.lang.String PARAM_BOUNDARY
boundary
parameter.
static final java.lang.String PARAM_CHARSET
charset
parameter.
Method Detail |
---|
java.lang.String getMimeType()
java.lang.String getMediaType()
java.lang.String getSubType()
java.lang.String getParameter(java.lang.String name)
name
- the name of the parameter to get.
null
if not set.java.util.Map<java.lang.String,java.lang.String> getParameters()
boolean isMimeType(java.lang.String mimeType)
mimeType
- the MIME type to match against.
true
if the MIME type of this field matches,
false
otherwise.boolean isMultipart()
multipart/*
.
true
if this field is has a
multipart/*
MIME type, false
otherwise.java.lang.String getBoundary()
boundary
parameter if set.
boundary
parameter value or null
if not set.java.lang.String getCharset()
charset
parameter if set.
charset
parameter value or null
if not set.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |