Package org.apache.james.mime4j.field
Class ContentIdFieldImpl
- java.lang.Object
-
- org.apache.james.mime4j.field.AbstractField
-
- org.apache.james.mime4j.field.ContentIdFieldImpl
-
- All Implemented Interfaces:
ContentIdField
,ParsedField
,Field
public class ContentIdFieldImpl extends AbstractField implements ContentIdField
Represents aContent-Transfer-Encoding
field.
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.String
id
private boolean
parsed
static FieldParser<ContentIdField>
PARSER
-
Fields inherited from class org.apache.james.mime4j.field.AbstractField
monitor, rawField
-
-
Constructor Summary
Constructors Constructor Description ContentIdFieldImpl(Field rawField, DecodeMonitor monitor)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getId()
Gets the content ID defined in this field.private void
parse()
-
Methods inherited from class org.apache.james.mime4j.field.AbstractField
getBody, getName, getNameLowerCase, 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.ContentIdField
bodyDescriptionField
-
Methods inherited from interface org.apache.james.mime4j.stream.Field
getBody, getName, getNameLowerCase, getRaw
-
Methods inherited from interface org.apache.james.mime4j.dom.field.ParsedField
getParseException, isValidField
-
-
-
-
Field Detail
-
parsed
private boolean parsed
-
id
private java.lang.String id
-
PARSER
public static final FieldParser<ContentIdField> PARSER
-
-
Constructor Detail
-
ContentIdFieldImpl
ContentIdFieldImpl(Field rawField, DecodeMonitor monitor)
-
-
Method Detail
-
parse
private void parse()
-
getId
public java.lang.String getId()
Description copied from interface:ContentIdField
Gets the content ID defined in this field.- Specified by:
getId
in interfaceContentIdField
- Returns:
- the content ID or
null
if not set.
-
-