com.sssw.srv.mail
Class AgoRFC822HeaderField
java.lang.Object
|
+--com.sssw.srv.mail.AgoRFC822HeaderField
- Direct Known Subclasses:
- AgoMIMEHeaderField, AgoRFC822HeaderFieldList, AgoRFC822HeaderFieldMailBox, AgoRFC822HeaderFieldString
- public abstract class AgoRFC822HeaderField
- extends Object
Abstract class stores a single RFC 822 header field (field name and value).
This class is typically used to get the headers from an AgoMIMEPart
.
Method Summary |
String |
getName()
Returns the name of the header (not including the ":" separator). |
void |
setName(String fieldname)
Sets the name of the header. |
void |
write(OutputStream outputstream)
Writes the header field to the specified output stream in a format suitable for a mail header |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
AgoRFC822HeaderField
public AgoRFC822HeaderField()
write
public void write(OutputStream outputstream)
throws IOException
- Writes the header field to the specified output stream in a format suitable for a mail header
- Parameters:
outputStream
- the output stream to write to.- Example:
hField.write(someOutputStream);
getName
public String getName()
- Returns the name of the header (not including the ":" separator).
- Example:
String name = hField.getName();
setName
public void setName(String fieldname)
- Sets the name of the header.
- Parameters:
fieldName
- the name for this header field. Do not include the ":" separator.- Example:
toField.setName("To");
- See Also:
AgoRFC822HeaderField.getName()