org.apache.james.mime4j.field
Class ContentLocationFieldImpl

java.lang.Object
  extended by org.apache.james.mime4j.field.AbstractField
      extended by org.apache.james.mime4j.field.ContentLocationFieldImpl
All Implemented Interfaces:
ContentLocationField, ParsedField, Field

public class ContentLocationFieldImpl
extends AbstractField
implements ContentLocationField

Represents a Content-Location field.


Field Summary
static FieldParser<ContentLocationField> PARSER
           
 
Fields inherited from class org.apache.james.mime4j.field.AbstractField
monitor, rawField
 
Method Summary
 java.lang.String getLocation()
          Gets the content location defined in this field.
 ParseException getParseException()
          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, 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.ParsedField
isValidField
 
Methods inherited from interface org.apache.james.mime4j.stream.Field
getBody, getName, getRaw
 

Field Detail

PARSER

public static final FieldParser<ContentLocationField> PARSER
Method Detail

getLocation

public java.lang.String getLocation()
Description copied from interface: ContentLocationField
Gets the content location defined in this field.

Specified by:
getLocation in interface ContentLocationField
Returns:
the content location or null if not set.

getParseException

public ParseException getParseException()
Description copied from interface: ParsedField
Returns the exception that was thrown by the field parser while parsing the field value. The result is null if the field is valid and no errors were encountered.

Specified by:
getParseException in interface ParsedField
Overrides:
getParseException in class AbstractField
Returns:
the exception that was thrown by the field parser or null if the field is valid.
See Also:
ParsedField.getParseException()


Copyright © 2004-2012 The Apache Software Foundation. All Rights Reserved.