|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--javax.mail.Message | +--javax.mail.internet.MimeMessage | +--dog.mail.nntp.Article
The message class implementing the NNTP mail protocol.
Inner classes inherited from class javax.mail.internet.MimeMessage |
javax.mail.internet.MimeMessage.RecipientType |
Inner classes inherited from class javax.mail.Message |
javax.mail.Message.RecipientType |
Field Summary | |
protected java.lang.String |
messageId
The unique message-id of this message. |
Fields inherited from class javax.mail.internet.MimeMessage |
content,
dh,
flags,
headers |
Fields inherited from class javax.mail.Message |
expunged,
folder,
msgnum,
session |
Constructor Summary | |
protected |
Article(Newsgroup folder,
int msgnum)
Creates an NNTP message with the specified article number. |
protected |
Article(Newsgroup folder,
java.lang.String messageId)
Creates an NNTP message with the specified message-id. |
Method Summary | |
void |
addFrom(javax.mail.Address[] a)
NNTP messages are read-only. |
void |
addRecipients(javax.mail.Message.RecipientType recipienttype,
javax.mail.Address[] a)
NNTP messages are read-only. |
protected javax.mail.Address[] |
getAddressHeader(java.lang.String key)
Returns an array of addresses for the specified header key. |
javax.mail.Address[] |
getAllRecipients()
Returns all the recipients' addresses. |
java.lang.Object |
getContent()
Returns the message content. |
javax.mail.Address[] |
getFrom()
Returns the from address. |
protected java.lang.String |
getHeaderKey(javax.mail.internet.MimeMessage.RecipientType type)
Returns the header key for the specified RecipientType. |
java.util.Date |
getReceivedDate()
Returns the received date. |
javax.mail.Address[] |
getRecipients(javax.mail.internet.MimeMessage.RecipientType type)
Returns the recipients' addresses for the specified RecipientType. |
javax.mail.Address[] |
getReplyTo()
Returns the reply-to address. |
java.util.Date |
getSentDate()
Returns the sent date. |
java.lang.String |
getSubject()
Returns the subject line. |
protected javax.mail.Address[] |
parseAddress(java.lang.String in,
java.lang.String defhost)
Makes a pass at parsing internet addresses. |
void |
setContentID(java.lang.String s)
NNTP messages are read-only. |
void |
setContentMD5(java.lang.String s)
NNTP messages are read-only. |
void |
setDataHandler(javax.activation.DataHandler datahandler)
NNTP messages are read-only. |
void |
setDescription(java.lang.String s,
java.lang.String s1)
NNTP messages are read-only. |
void |
setDisposition(java.lang.String s)
NNTP messages are read-only. |
void |
setFrom(javax.mail.Address address)
NNTP messages are read-only. |
void |
setRecipients(javax.mail.Message.RecipientType recipienttype,
javax.mail.Address[] a)
NNTP messages are read-only. |
void |
setReplyTo(javax.mail.Address[] a)
NNTP messages are read-only. |
void |
setSentDate(java.util.Date date)
NNTP messages are read-only. |
void |
setSubject(java.lang.String s,
java.lang.String s1)
NNTP messages are read-only. |
Methods inherited from class javax.mail.internet.MimeMessage |
addHeader,
addHeaderLine,
getAllHeaderLines,
getAllHeaders,
getContentID,
getContentLanguage,
getContentMD5,
getContentStream,
getContentType,
getDataHandler,
getDescription,
getDisposition,
getEncoding,
getFileName,
getFlags,
getHeader,
getHeader,
getInputStream,
getLineCount,
getMatchingHeaderLines,
getMatchingHeaders,
getMessageID,
getNonMatchingHeaderLines,
getNonMatchingHeaders,
getRecipients,
getSize,
isMimeType,
isSet,
removeHeader,
reply,
saveChanges,
setContent,
setContent,
setContentLanguage,
setDescription,
setFileName,
setFlags,
setFrom,
setHeader,
setSubject,
setText,
setText,
updateHeaders,
writeTo,
writeTo |
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 java.lang.String messageId
Constructor Detail |
protected Article(Newsgroup folder, int msgnum) throws javax.mail.MessagingException
protected Article(Newsgroup folder, java.lang.String messageId) throws javax.mail.MessagingException
Method Detail |
public java.lang.Object getContent() throws java.io.IOException, javax.mail.MessagingException
public javax.mail.Address[] getFrom() throws javax.mail.MessagingException
public javax.mail.Address[] getRecipients(javax.mail.internet.MimeMessage.RecipientType type) throws javax.mail.MessagingException
public javax.mail.Address[] getAllRecipients() throws javax.mail.MessagingException
public javax.mail.Address[] getReplyTo() throws javax.mail.MessagingException
public java.lang.String getSubject() throws javax.mail.MessagingException
public java.util.Date getSentDate() throws javax.mail.MessagingException
public java.util.Date getReceivedDate() throws javax.mail.MessagingException
protected javax.mail.Address[] getAddressHeader(java.lang.String key) throws javax.mail.MessagingException
protected javax.mail.Address[] parseAddress(java.lang.String in, java.lang.String defhost) throws javax.mail.internet.AddressException
protected java.lang.String getHeaderKey(javax.mail.internet.MimeMessage.RecipientType type) throws javax.mail.MessagingException
public void setFrom(javax.mail.Address address) throws javax.mail.MessagingException
public void addFrom(javax.mail.Address[] a) throws javax.mail.MessagingException
public void setRecipients(javax.mail.Message.RecipientType recipienttype, javax.mail.Address[] a) throws javax.mail.MessagingException
public void addRecipients(javax.mail.Message.RecipientType recipienttype, javax.mail.Address[] a) throws javax.mail.MessagingException
public void setReplyTo(javax.mail.Address[] a) throws javax.mail.MessagingException
public void setSubject(java.lang.String s, java.lang.String s1) throws javax.mail.MessagingException
public void setSentDate(java.util.Date date) throws javax.mail.MessagingException
public void setDisposition(java.lang.String s) throws javax.mail.MessagingException
public void setContentID(java.lang.String s) throws javax.mail.MessagingException
public void setContentMD5(java.lang.String s) throws javax.mail.MessagingException
public void setDescription(java.lang.String s, java.lang.String s1) throws javax.mail.MessagingException
public void setDataHandler(javax.activation.DataHandler datahandler) throws javax.mail.MessagingException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |