|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.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 Part
getSize
in class MimeMessage
MessagingException
public int getLineCount() throws MessagingException
getLineCount
in interface Part
getLineCount
in class MimeMessage
MessagingException
protected InputStream getContentStream() throws MessagingException
getContentStream
in class MimeMessage
MessagingException
MimeMessage.getContentStream()
public String[] getHeader(String name) throws MessagingException
getHeader
in interface Part
getHeader
in class MimeMessage
MessagingException
public String getHeader(String name, String delimiter) throws MessagingException
getHeader
in interface MimePart
getHeader
in class MimeMessage
MessagingException
public Enumeration getAllHeaders() throws MessagingException
getAllHeaders
in interface Part
getAllHeaders
in class MimeMessage
MessagingException
public Enumeration getMatchingHeaders(String[] names) throws MessagingException
getMatchingHeaders
in interface Part
getMatchingHeaders
in class MimeMessage
MessagingException
public Enumeration getNonMatchingHeaders(String[] names) throws MessagingException
getNonMatchingHeaders
in interface Part
getNonMatchingHeaders
in class MimeMessage
MessagingException
public Enumeration getAllHeaderLines() throws MessagingException
getAllHeaderLines
in interface MimePart
getAllHeaderLines
in class MimeMessage
MessagingException
public Enumeration getMatchingHeaderLines(String[] names) throws MessagingException
getMatchingHeaderLines
in interface MimePart
getMatchingHeaderLines
in class MimeMessage
MessagingException
public Enumeration getNonMatchingHeaderLines(String[] names) throws MessagingException
getNonMatchingHeaderLines
in interface MimePart
getNonMatchingHeaderLines
in class MimeMessage
MessagingException
public void addHeader(String name, String value) throws MessagingException
addHeader
in interface Part
addHeader
in class MimeMessage
MessagingException
public void setHeader(String name, String value) throws MessagingException
setHeader
in interface Part
setHeader
in class MimeMessage
MessagingException
public void removeHeader(String name) throws MessagingException
removeHeader
in interface Part
removeHeader
in class MimeMessage
MessagingException
public void addHeaderLine(String line) throws MessagingException
addHeaderLine
in interface MimePart
addHeaderLine
in class MimeMessage
MessagingException
public void saveChanges() throws MessagingException
saveChanges
in class MimeMessage
MessagingException
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.
MessagingException
public String getMessageId()
public void setFlags(Flags flag, boolean newvalue) throws MessagingException
setFlags
in class MimeMessage
flag
- 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 |