| org.apache.james.core.MailHeaders
MailHeaders | public class MailHeaders extends InternetHeaders implements Serializable,Cloneable(Code) | | This interface defines a container for mail headers. Each header must use
MIME format: name: value .
|
Constructor Summary | |
public | MailHeaders() | public | MailHeaders(InputStream in) Constructor that takes an InputStream containing the contents
of the set of mail headers. |
Method Summary | |
public void | addHeader(String arg0, String arg1) If the new header is a Return-Path we get sure that we add it to the top
Javamail, at least until 1.4.0 does the wrong thing if it loaded a stream with
a return-path in the middle. | protected Object | clone() | public boolean | isSet(String name) Check if a particular header is present. | public boolean | isValid() Check if all REQUIRED headers fields as specified in RFC 822
are present. | public void | setHeader(String arg0, String arg1) If the new header is a Return-Path we get sure that we add it to the top
Javamail, at least until 1.4.0 does the wrong thing if it loaded a stream with
a return-path in the middle. | public byte[] | toByteArray() Generate a representation of the headers as a series of bytes. | public void | writeTo(OutputStream out) |
MailHeaders | public MailHeaders() throws MessagingException(Code) | | No argument constructor
throws: MessagingException - if the super class cannot be properly instantiated |
MailHeaders | public MailHeaders(InputStream in) throws MessagingException(Code) | | Constructor that takes an InputStream containing the contents
of the set of mail headers.
Parameters: in - the InputStream containing the header data throws: MessagingException - if the super class cannot be properly instantiatedbased on the stream |
addHeader | public void addHeader(String arg0, String arg1)(Code) | | If the new header is a Return-Path we get sure that we add it to the top
Javamail, at least until 1.4.0 does the wrong thing if it loaded a stream with
a return-path in the middle.
See Also: javax.mail.internet.InternetHeaders.addHeader(java.lang.Stringjava.lang.String) |
isSet | public boolean isSet(String name)(Code) | | Check if a particular header is present.
true if the header is present, false otherwise |
isValid | public boolean isValid()(Code) | | Check if all REQUIRED headers fields as specified in RFC 822
are present.
true if the headers are present, false otherwise |
setHeader | public void setHeader(String arg0, String arg1)(Code) | | If the new header is a Return-Path we get sure that we add it to the top
Javamail, at least until 1.4.0 does the wrong thing if it loaded a stream with
a return-path in the middle.
See Also: javax.mail.internet.InternetHeaders.setHeader(java.lang.Stringjava.lang.String) |
toByteArray | public byte[] toByteArray()(Code) | | Generate a representation of the headers as a series of bytes.
the byte array containing the headers |
writeTo | public void writeTo(OutputStream out)(Code) | | Write the headers to an output stream
Parameters: writer - the stream to which to write the headers |
|
|