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
public class ContentLocationFieldImpl extends AbstractField implements ContentLocationField
Represents aContent-Locationfield.
-
-
Field Summary
Fields Modifier and Type Field Description static FieldParser<ContentLocationField>PARSER-
Fields inherited from class org.apache.james.mime4j.field.AbstractField
monitor, rawField
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetLocation()Gets the content location defined in this field.ParseExceptiongetParseException()Returns the exception that was thrown by the field parser while parsing the field value.-
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
isValidField
-
-
-
-
Field Detail
-
PARSER
public static final FieldParser<ContentLocationField> PARSER
-
-
Method Detail
-
getLocation
public String 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
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()
-
-