Package org.apache.james.mime4j.field
Class MailboxListFieldImpl
- java.lang.Object
-
- org.apache.james.mime4j.field.AbstractField
-
- org.apache.james.mime4j.field.MailboxListFieldImpl
-
- All Implemented Interfaces:
MailboxListField,ParsedField,Field
public class MailboxListFieldImpl extends AbstractField implements MailboxListField
Mailbox-list field such asFromorResent-From.
-
-
Field Summary
Fields Modifier and Type Field Description private MailboxListmailboxListprivate booleanparsedprivate ParseExceptionparseExceptionstatic FieldParser<MailboxListField>PARSER-
Fields inherited from class org.apache.james.mime4j.field.AbstractField
monitor, rawField
-
-
Constructor Summary
Constructors Constructor Description MailboxListFieldImpl(Field rawField, DecodeMonitor monitor)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MailboxListgetMailboxList()ParseExceptiongetParseException()Returns the exception that was thrown by the field parser while parsing the field value.private voidparse()-
Methods inherited from class org.apache.james.mime4j.field.AbstractField
getBody, getName, getNameLowerCase, 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.stream.Field
getBody, getName, getNameLowerCase, getRaw
-
Methods inherited from interface org.apache.james.mime4j.dom.field.ParsedField
bodyDescriptionField, isValidField
-
-
-
-
Field Detail
-
parsed
private boolean parsed
-
mailboxList
private MailboxList mailboxList
-
parseException
private ParseException parseException
-
PARSER
public static final FieldParser<MailboxListField> PARSER
-
-
Constructor Detail
-
MailboxListFieldImpl
MailboxListFieldImpl(Field rawField, DecodeMonitor monitor)
-
-
Method Detail
-
getMailboxList
public MailboxList getMailboxList()
- Specified by:
getMailboxListin interfaceMailboxListField- See Also:
MailboxListField.getMailboxList()
-
getParseException
public ParseException 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- Overrides:
getParseExceptionin classAbstractField- Returns:
- the exception that was thrown by the field parser or
nullif the field is valid. - See Also:
ParsedField.getParseException()
-
parse
private void parse()
-
-