Package org.apache.james.mime4j.field
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 String
private boolean
private ParseException
static final FieldParser
<ContentLocationField> private static final Pattern
Fields inherited from class org.apache.james.mime4j.field.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 void
parse()
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.dom.field.ContentLocationField
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
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:ContentLocationField
Gets the content location defined in this field.- Specified by:
getLocation
in interfaceContentLocationField
- Returns:
- the content location or
null
if not set.
-
getParseException
Description copied from interface:ParsedField
Returns the exception that was thrown by the field parser while parsing the field value. The result isnull
if the field is valid and no errors were encountered.- Specified by:
getParseException
in interfaceParsedField
- Overrides:
getParseException
in classAbstractField
- Returns:
- the exception that was thrown by the field parser or
null
if the field is valid. - See Also:
-