gnu.mail.providers.nntp

Class NNTPMessage

Implemented Interfaces:
MimePart, Part

public final class NNTPMessage
extends MimeMessage

A JavaMail MIME message delegate for an NNTP article.

Nested Class Summary

Nested classes/interfaces inherited from class javax.mail.internet.MimeMessage

MimeMessage.RecipientType

Nested classes/interfaces inherited from class javax.mail.Message

Message.RecipientType

Field Summary

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, session

Fields inherited from interface javax.mail.Part

ATTACHMENT, INLINE

Method Summary

Enumeration
getAllHeaderLines()
Enumeration
getAllHeaders()
InputStream
getContentStream()
String[]
getHeader(String name)
String
getHeader(String name, String delimiter)
int
getLineCount()
Enumeration
getMatchingHeaderLines(String[] names)
Enumeration
getMatchingHeaders(String[] names)
String
getMessageId()
Enumeration
getNonMatchingHeaderLines(String[] names)
Enumeration
getNonMatchingHeaders(String[] names)
int
getSize()
void
saveChanges()
void
setFlags(Flags flag, boolean set)

Methods inherited from class javax.mail.internet.MimeMessage

addFrom, addHeader, addHeaderLine, addRecipients, addRecipients, createInternetHeaders, getAllHeaderLines, getAllHeaders, getAllRecipients, getContent, getContentID, getContentLanguage, getContentMD5, getContentStream, getContentType, getDataHandler, getDescription, getDisposition, getEncoding, getFileName, getFlags, getFrom, getHeader, getHeader, getInputStream, getLineCount, getMatchingHeaderLines, getMatchingHeaders, getMessageID, getNonMatchingHeaderLines, getNonMatchingHeaders, getRawInputStream, getReceivedDate, getRecipients, getReplyTo, getSender, getSentDate, getSize, getSubject, isMimeType, isSet, parse, removeHeader, reply, saveChanges, setContent, setContent, setContentID, setContentLanguage, setContentMD5, setDataHandler, setDescription, setDescription, setDisposition, setFileName, setFlags, setFrom, setFrom, setHeader, setRecipients, setRecipients, setReplyTo, setSender, setSentDate, setSubject, setSubject, setText, setText, updateHeaders, writeTo, writeTo

Methods inherited from class javax.mail.Message

addFrom, addRecipient, addRecipients, getAllRecipients, getFlags, getFolder, getFrom, getMessageNumber, getReceivedDate, getRecipients, getReplyTo, getSentDate, getSubject, isExpunged, isSet, match, reply, saveChanges, setExpunged, setFlag, setFlags, setFrom, setFrom, setMessageNumber, setRecipient, setRecipients, setReplyTo, setSentDate, setSubject

Method Details

getAllHeaderLines

public Enumeration getAllHeaderLines()
            throws MessagingException
Specified by:
getAllHeaderLines in interface MimePart
Overrides:
getAllHeaderLines in interface MimeMessage


getAllHeaders

public Enumeration getAllHeaders()
            throws MessagingException
Specified by:
getAllHeaders in interface Part
Overrides:
getAllHeaders in interface MimeMessage


getContentStream

public InputStream getContentStream()
            throws MessagingException
Overrides:
getContentStream in interface MimeMessage


getHeader

public String[] getHeader(String name)
            throws MessagingException
Specified by:
getHeader in interface Part
Overrides:
getHeader in interface MimeMessage


getHeader

public String getHeader(String name,
                        String delimiter)
            throws MessagingException
Specified by:
getHeader in interface MimePart
Overrides:
getHeader in interface MimeMessage


getLineCount

public int getLineCount()
            throws MessagingException
Specified by:
getLineCount in interface Part
Overrides:
getLineCount in interface MimeMessage


getMatchingHeaderLines

public Enumeration getMatchingHeaderLines(String[] names)
            throws MessagingException
Specified by:
getMatchingHeaderLines in interface MimePart
Overrides:
getMatchingHeaderLines in interface MimeMessage


getMatchingHeaders

public Enumeration getMatchingHeaders(String[] names)
            throws MessagingException
Specified by:
getMatchingHeaders in interface Part
Overrides:
getMatchingHeaders in interface MimeMessage


getMessageId

public String getMessageId()


getNonMatchingHeaderLines

public Enumeration getNonMatchingHeaderLines(String[] names)
            throws MessagingException
Specified by:
getNonMatchingHeaderLines in interface MimePart
Overrides:
getNonMatchingHeaderLines in interface MimeMessage


getNonMatchingHeaders

public Enumeration getNonMatchingHeaders(String[] names)
            throws MessagingException
Specified by:
getNonMatchingHeaders in interface Part
Overrides:
getNonMatchingHeaders in interface MimeMessage


getSize

public int getSize()
            throws MessagingException
Specified by:
getSize in interface Part
Overrides:
getSize in interface MimeMessage


saveChanges

public void saveChanges()
            throws MessagingException
Overrides:
saveChanges in interface MimeMessage


setFlags

public void setFlags(Flags flag,
                     boolean set)
            throws MessagingException
Overrides:
setFlags in interface MimeMessage