| 
||||||||||
| 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
public class MailHeaders
This interface defines a container for mail headers. Each header must use MIME format:
name: value.
| Nested Class Summary | 
|---|
| Nested classes/interfaces inherited from class javax.mail.internet.InternetHeaders | 
|---|
javax.mail.internet.InternetHeaders.InternetHeader | 
| Field Summary | 
|---|
| Fields inherited from class javax.mail.internet.InternetHeaders | 
|---|
headers | 
| Constructor Summary | |
|---|---|
MailHeaders()
No argument constructor  | 
|
MailHeaders(java.io.InputStream in)
Constructor that takes an InputStream containing the contents of the set of mail headers.  | 
|
| Method Summary | |
|---|---|
 void | 
addHeader(java.lang.String arg0,
          java.lang.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  java.lang.Object | 
clone()
 | 
 boolean | 
isSet(java.lang.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(java.lang.String arg0,
          java.lang.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(java.io.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 javax.mail.MessagingException
javax.mail.MessagingException - if the super class cannot be properly instantiated
public MailHeaders(java.io.InputStream in)
            throws javax.mail.MessagingException
in - the InputStream containing the header data
javax.mail.MessagingException - if the super class cannot be properly instantiated
                            based on the stream| Method Detail | 
|---|
public void writeTo(java.io.OutputStream out)
writer - the stream to which to write the headerspublic byte[] toByteArray()
public boolean isSet(java.lang.String name)
public void addHeader(java.lang.String arg0,
                      java.lang.String arg1)
addHeader in class javax.mail.internet.InternetHeadersInternetHeaders.addHeader(java.lang.String, java.lang.String)
public void setHeader(java.lang.String arg0,
                      java.lang.String arg1)
setHeader in class javax.mail.internet.InternetHeadersInternetHeaders.setHeader(java.lang.String, java.lang.String)
protected java.lang.Object clone()
                          throws java.lang.CloneNotSupportedException
clone in class java.lang.Objectjava.lang.CloneNotSupportedExceptionpublic boolean isValid()
  | 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||