|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.mail.internet.InternetHeaders
org.apache.james.core.MailHeaders
This interface defines a container for mail headers. Each header must use MIME format:
name: value.
Nested Class Summary |
Nested classes inherited from class javax.mail.internet.InternetHeaders |
InternetHeaders.InternetHeader |
Field Summary |
Fields inherited from class javax.mail.internet.InternetHeaders |
headers |
Constructor Summary | |
MailHeaders()
No argument constructor |
|
MailHeaders(InputStream in)
Constructor that takes an InputStream containing the contents of the set of mail headers. |
Method Summary | |
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()
|
boolean |
isSet(String name)
Check if a particular header is present. |
boolean |
isValid()
Check if all REQUIRED headers fields as specified in RFC 822 are present. |
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. |
byte[] |
toByteArray()
Generate a representation of the headers as a series of bytes. |
void |
writeTo(OutputStream out)
Write the headers to an output stream |
Methods inherited from class javax.mail.internet.InternetHeaders |
addHeaderLine, getAllHeaderLines, getAllHeaders, getHeader, getHeader, getMatchingHeaderLines, getMatchingHeaders, getNonMatchingHeaderLines, getNonMatchingHeaders, load, removeHeader |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public MailHeaders() throws MessagingException
MessagingException
- if the super class cannot be properly instantiatedpublic MailHeaders(InputStream in) throws MessagingException
in
- the InputStream containing the header data
MessagingException
- if the super class cannot be properly instantiated
based on the streamMethod Detail |
public void writeTo(OutputStream out)
public byte[] toByteArray()
public boolean isSet(String name)
public void addHeader(String arg0, String arg1)
InternetHeaders.addHeader(java.lang.String, java.lang.String)
public void setHeader(String arg0, String arg1)
InternetHeaders.setHeader(java.lang.String, java.lang.String)
protected Object clone() throws CloneNotSupportedException
CloneNotSupportedException
public boolean isValid()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |