public abstract class AbstractField extends Object implements ParsedField
Modifier and Type | Field and Description |
---|---|
protected DecodeMonitor |
monitor |
protected Field |
rawField |
Modifier | Constructor and Description |
---|---|
protected |
AbstractField(Field rawField,
DecodeMonitor monitor) |
Modifier and Type | Method and Description |
---|---|
String |
getBody()
Gets the unfolded, unparsed and possibly encoded (see RFC 2047) field
body string.
|
String |
getName()
Gets the name of the field (
Subject ,
From , etc). |
ParseException |
getParseException()
Returns the exception that was thrown by the field parser while parsing
the field value.
|
ByteSequence |
getRaw()
Gets original (raw) representation of the field, if available,
null otherwise. |
protected RawField |
getRawField() |
boolean |
isValidField()
Returns
true if this field is valid, i.e. |
String |
toString() |
protected final Field rawField
protected final DecodeMonitor monitor
protected AbstractField(Field rawField, DecodeMonitor monitor)
public String getName()
Subject
,
From
, etc).public String getBody()
public ByteSequence getRaw()
null
otherwise.public boolean isValidField()
ParsedField
true
if this field is valid, i.e. no errors were
encountered while parsing the field value.isValidField
in interface ParsedField
true
if this field is valid, false
otherwise.ParsedField.isValidField()
public ParseException getParseException()
ParsedField
null
if the field is valid
and no errors were encountered.getParseException
in interface ParsedField
null
if the field is valid.ParsedField.getParseException()
protected RawField getRawField()
Copyright © 2004-2012 The Apache Software Foundation. All Rights Reserved.