| 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(java.lang.String contentType)
Creates a Content-Type field from the specified raw field value.
|
static ContentTypeField |
Fields.contentType(java.lang.String mimeType,
java.lang.Iterable<NameValuePair> parameters)
Creates a Content-Type field from the specified MIME type and
parameters.
|
static ContentTypeField |
Fields.contentType(java.lang.String mimeType,
java.util.Map<java.lang.String,java.lang.String> parameters)
Creates a Content-Type field from the specified MIME type and
parameters.
|
static ContentTypeField |
Fields.contentType(java.lang.String mimeType,
NameValuePair... parameters)
Creates a Content-Type field from the specified MIME type and
parameters.
|
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
ContentTypeFieldImpl.getCharset(ContentTypeField f)
Gets the value of the
charset parameter if set for the
given field. |
static java.lang.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 |
|---|---|
private ContentTypeField |
DefaultMessageWriter.getContentType(Multipart multipart) |
private ContentTypeField |
AbstractEntity.getContentTypeField() |
| Modifier and Type | Method and Description |
|---|---|
protected java.lang.String |
BodyPart.calcCharset(ContentTypeField contentType) |
protected java.lang.String |
MessageImpl.calcCharset(ContentTypeField contentType) |
protected abstract java.lang.String |
AbstractEntity.calcCharset(ContentTypeField contentType) |
protected java.lang.String |
BodyPart.calcMimeType(ContentTypeField child,
ContentTypeField parent) |
protected java.lang.String |
MessageImpl.calcMimeType(ContentTypeField child,
ContentTypeField parent) |
protected abstract java.lang.String |
AbstractEntity.calcMimeType(ContentTypeField child,
ContentTypeField parent) |
private ByteSequence |
DefaultMessageWriter.getBoundary(ContentTypeField contentType) |