Package | Description |
---|---|
org.apache.james.mime4j.field | |
org.apache.james.mime4j.message |
Modifier and Type | Class and Description |
---|---|
class |
ContentTypeFieldImpl
Represents a
Content-Type field. |
class |
ContentTypeFieldLenientImpl
Represents a
Content-Type field. |
Modifier and Type | Field and Description |
---|---|
static FieldParser<ContentTypeField> |
ContentTypeFieldLenientImpl.PARSER |
static FieldParser<ContentTypeField> |
ContentTypeFieldImpl.PARSER |
Modifier and Type | Method and Description |
---|---|
static ContentTypeField |
Fields.contentType(String contentType)
Creates a Content-Type field from the specified raw field value.
|
static ContentTypeField |
Fields.contentType(String mimeType,
Map<String,String> parameters)
Creates a Content-Type field from the specified MIME type and
parameters.
|
Modifier and Type | Method and Description |
---|---|
static String |
ContentTypeFieldImpl.getCharset(ContentTypeField f)
Gets the value of the
charset parameter if set for the
given field. |
static String |
ContentTypeFieldImpl.getMimeType(ContentTypeField child,
ContentTypeField parent)
Gets the MIME type defined in the child's Content-Type field or derives a
MIME type from the parent if child is
null or hasn't got a
MIME type value set. |
Modifier and Type | Method and Description |
---|---|
protected ContentTypeField |
MessageImpl.newContentType(String mimeType,
Map<String,String> parameters) |
protected ContentTypeField |
BodyPart.newContentType(String mimeType,
Map<String,String> parameters) |
protected abstract ContentTypeField |
AbstractEntity.newContentType(String mimeType,
Map<String,String> parameters) |
Modifier and Type | Method and Description |
---|---|
protected String |
MessageImpl.calcCharset(ContentTypeField contentType) |
protected String |
BodyPart.calcCharset(ContentTypeField contentType) |
protected abstract String |
AbstractEntity.calcCharset(ContentTypeField contentType) |
protected String |
MessageImpl.calcMimeType(ContentTypeField child,
ContentTypeField parent) |
protected String |
BodyPart.calcMimeType(ContentTypeField child,
ContentTypeField parent) |
protected abstract String |
AbstractEntity.calcMimeType(ContentTypeField child,
ContentTypeField parent) |
Copyright © 2004-2012 The Apache Software Foundation. All Rights Reserved.