Class ContentLocationFieldImpl
java.lang.Object
org.apache.james.mime4j.field.AbstractField
org.apache.james.mime4j.field.ContentLocationFieldImpl
- All Implemented Interfaces:
ContentLocationField, ParsedField, Field
Represents a
Content-Location field.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate Stringprivate booleanprivate ParseExceptionstatic final FieldParser<ContentLocationField> private static final PatternFields inherited from class AbstractField
monitor, rawField -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the content location defined in this field.Returns the exception that was thrown by the field parser while parsing the field value.private voidparse()Methods inherited from class AbstractField
getBody, getName, getNameLowerCase, getRaw, getRawField, isValidField, toStringMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface ContentLocationField
bodyDescriptionFieldMethods inherited from interface Field
getBody, getName, getNameLowerCase, getRawMethods inherited from interface ParsedField
isValidField
-
Field Details
-
PATTERN
-
parsed
private boolean parsed -
location
-
parseException
-
PARSER
-
-
Constructor Details
-
ContentLocationFieldImpl
ContentLocationFieldImpl(Field rawField, DecodeMonitor monitor)
-
-
Method Details
-
parse
private void parse() -
getLocation
Description copied from interface:ContentLocationFieldGets the content location defined in this field.- Specified by:
getLocationin interfaceContentLocationField- Returns:
- the content location or
nullif not set.
-
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:
-