Class AbstractField
java.lang.Object
org.apache.james.mime4j.field.AbstractField
- All Implemented Interfaces:
ParsedField, Field
- Direct Known Subclasses:
AddressListFieldImpl, AddressListFieldLenientImpl, ContentDescriptionFieldImpl, ContentDispositionFieldImpl, ContentDispositionFieldLenientImpl, ContentIdFieldImpl, ContentLanguageFieldImpl, ContentLanguageFieldLenientImpl, ContentLengthFieldImpl, ContentLocationFieldImpl, ContentLocationFieldLenientImpl, ContentMD5FieldImpl, ContentTransferEncodingFieldImpl, ContentTypeFieldImpl, ContentTypeFieldLenientImpl, DateTimeFieldImpl, DateTimeFieldLenientImpl, MailboxFieldImpl, MailboxFieldLenientImpl, MailboxListFieldImpl, MailboxListFieldLenientImpl, MimeVersionFieldImpl, MimeVersionFieldLenientImpl, UnstructuredFieldImpl
The base class of all field classes.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetBody()Gets the unfolded, unparsed and possibly encoded (see RFC 2047) field body string.getName()Gets the name of the field (Subject,From, etc).Gets the name of the field in lower case (subject,from, etc).Returns the exception that was thrown by the field parser while parsing the field value.getRaw()Gets original (raw) representation of the field, if available,nullotherwise.protected RawFieldbooleanReturnstrueif this field is valid, i.e.toString()Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface ParsedField
bodyDescriptionField
-
Field Details
-
rawField
-
monitor
-
-
Constructor Details
-
AbstractField
-
-
Method Details
-
getName
-
getNameLowerCase
Gets the name of the field in lower case (subject,from, etc).- Specified by:
getNameLowerCasein interfaceField- Returns:
- the field name.
-
getBody
-
getRaw
Gets original (raw) representation of the field, if available,nullotherwise. -
isValidField
public boolean isValidField()Description copied from interface:ParsedFieldReturnstrueif this field is valid, i.e. no errors were encountered while parsing the field value.- Specified by:
isValidFieldin interfaceParsedField- Returns:
trueif this field is valid,falseotherwise.- See Also:
-
getParseException
Description copied from interface:ParsedFieldReturns the exception that was thrown by the field parser while parsing the field value. The result isnullif the field is valid and no errors were encountered.- Specified by:
getParseExceptionin interfaceParsedField- Returns:
- the exception that was thrown by the field parser or
nullif the field is valid. - See Also:
-
getRawField
-
toString
-