|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.mail.Message
javax.mail.internet.MimeMessage
org.apache.geronimo.javamail.store.nntp.NNTPMessage
public class NNTPMessage
NNTP implementation of javax.mail.internet.MimeMessage Only the most basic information is given and Message objects created here is a light-weight reference to the actual Message As per the JavaMail spec items from the actual message will get filled up on demand If some other items are obtained from the server as a result of one call, then the other details are also processed and filled in. For ex if RETR is called then header information will also be processed in addition to the content
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class javax.mail.internet.MimeMessage |
|---|
MimeMessage.RecipientType |
| Field Summary | |
|---|---|
protected NNTPConnection |
connection
|
protected boolean |
contentLoaded
|
protected boolean |
headersLoaded
|
protected Session |
session
|
protected NNTPStore |
store
|
| Fields inherited from class javax.mail.internet.MimeMessage |
|---|
content, contentStream, dh, flags, headers, modified, saved |
| Fields inherited from class javax.mail.Message |
|---|
expunged, folder, msgnum |
| Fields inherited from interface javax.mail.Part |
|---|
ATTACHMENT, INLINE |
| Method Summary | |
|---|---|
void |
addHeader(String name,
String value)
|
void |
addHeaderLine(String line)
|
Enumeration |
getAllHeaderLines()
|
Enumeration |
getAllHeaders()
|
protected InputStream |
getContentStream()
|
String[] |
getHeader(String name)
Following is a set of methods that deal with headers These methods are just overrides on the superclass methods to allow lazy loading of the header information. |
String |
getHeader(String name,
String delimiter)
|
int |
getLineCount()
Get a line count for the NNTP message. |
Enumeration |
getMatchingHeaderLines(String[] names)
|
Enumeration |
getMatchingHeaders(String[] names)
|
String |
getMessageId()
Get the server assigned messageid for the article. |
Enumeration |
getNonMatchingHeaderLines(String[] names)
|
Enumeration |
getNonMatchingHeaders(String[] names)
|
int |
getSize()
Retrieve the size of the message content. |
void |
loadArticle()
Load the entire article from the NNTP server. |
void |
loadContent()
Load just the message content from the NNTP server. |
void |
loadHeaders()
Retrieve the message headers from the NNTP server. |
void |
removeHeader(String name)
|
void |
saveChanges()
We cannot modify these messages |
void |
setFlags(Flags flag,
boolean newvalue)
Override of setFlags(). |
void |
setHeader(String name,
String value)
|
void |
updateContent(InputStream in)
Update the article content from an input stream. |
void |
updateHeaders(InputStream in)
Update the message headers from an input stream. |
| Methods inherited from class javax.mail.Message |
|---|
addRecipient, getFolder, getMessageNumber, isExpunged, match, setExpunged, setFlag, setMessageNumber, setRecipient |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected Session session
protected NNTPStore store
protected NNTPConnection connection
protected boolean headersLoaded
protected boolean contentLoaded
| Method Detail |
|---|
public int getSize()
throws MessagingException
getSize in interface PartgetSize in class MimeMessageMessagingException
public int getLineCount()
throws MessagingException
getLineCount in interface PartgetLineCount in class MimeMessageMessagingException
protected InputStream getContentStream()
throws MessagingException
getContentStream in class MimeMessageMessagingExceptionMimeMessage.getContentStream()
public String[] getHeader(String name)
throws MessagingException
getHeader in interface PartgetHeader in class MimeMessageMessagingException
public String getHeader(String name,
String delimiter)
throws MessagingException
getHeader in interface MimePartgetHeader in class MimeMessageMessagingException
public Enumeration getAllHeaders()
throws MessagingException
getAllHeaders in interface PartgetAllHeaders in class MimeMessageMessagingException
public Enumeration getMatchingHeaders(String[] names)
throws MessagingException
getMatchingHeaders in interface PartgetMatchingHeaders in class MimeMessageMessagingException
public Enumeration getNonMatchingHeaders(String[] names)
throws MessagingException
getNonMatchingHeaders in interface PartgetNonMatchingHeaders in class MimeMessageMessagingException
public Enumeration getAllHeaderLines()
throws MessagingException
getAllHeaderLines in interface MimePartgetAllHeaderLines in class MimeMessageMessagingException
public Enumeration getMatchingHeaderLines(String[] names)
throws MessagingException
getMatchingHeaderLines in interface MimePartgetMatchingHeaderLines in class MimeMessageMessagingException
public Enumeration getNonMatchingHeaderLines(String[] names)
throws MessagingException
getNonMatchingHeaderLines in interface MimePartgetNonMatchingHeaderLines in class MimeMessageMessagingException
public void addHeader(String name,
String value)
throws MessagingException
addHeader in interface PartaddHeader in class MimeMessageMessagingException
public void setHeader(String name,
String value)
throws MessagingException
setHeader in interface PartsetHeader in class MimeMessageMessagingException
public void removeHeader(String name)
throws MessagingException
removeHeader in interface PartremoveHeader in class MimeMessageMessagingException
public void addHeaderLine(String line)
throws MessagingException
addHeaderLine in interface MimePartaddHeaderLine in class MimeMessageMessagingException
public void saveChanges()
throws MessagingException
saveChanges in class MimeMessageMessagingException
public void loadHeaders()
throws MessagingException
MessagingException
public void updateHeaders(InputStream in)
throws MessagingException
in - The InputStream source for the header information.
MessagingException
public void loadContent()
throws MessagingException
MessagingException
public void loadArticle()
throws MessagingException
MessagingException
public void updateContent(InputStream in)
throws MessagingException
in - The content data source.
MessagingExceptionpublic String getMessageId()
public void setFlags(Flags flag,
boolean newvalue)
throws MessagingException
setFlags in class MimeMessageflag - The flag being set.newvalue - The new flag value.
MessagingException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||