|
Jive Forums API (5.5.20.2-oracle) Developer Javadocs | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jivesoftware.forum.mail.POP3Message
public class POP3Message
Implementation of InboundMessage
for POP3 protocol. Instances of this class actually hold all the message data in memory,
sinces the vagaries of POP3 prevent us from lazily retrieving data from the server.
Constructor Summary | |
---|---|
POP3Message(java.lang.String subject,
java.lang.String body,
java.util.List headers,
javax.mail.Address[] from,
java.util.List attachments)
Sole constructor |
Method Summary | |
---|---|
java.util.Iterator |
getAttachments()
Returns the attachments as an Iterator of AttachmentData . |
java.lang.String |
getBody()
Returns the body text of the message. |
javax.mail.Address[] |
getFrom()
Returns the sender addresses. |
java.lang.String[] |
getHeader(java.lang.String name)
Returns the header values corresponding to the supplied header name. |
java.util.Iterator |
getHeaders()
Returns the headers sent with the message as an Iterator of strings. |
java.lang.String |
getSubject()
Returns the subject text of the message. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public POP3Message(java.lang.String subject, java.lang.String body, java.util.List headers, javax.mail.Address[] from, java.util.List attachments) throws java.io.IOException
subject
- the subject text of the message.body
- the body text of the message.headers
- the message headers of the original message.from
- the address(es) of the sender.
java.io.IOException
Method Detail |
---|
public java.lang.String getBody() throws javax.mail.MessagingException, java.io.IOException
InboundMessage
getBody
in interface InboundMessage
javax.mail.MessagingException
- if a server communication error occurs.
java.io.IOException
- if a server communication error occurs.public java.util.Iterator getAttachments() throws javax.mail.MessagingException, java.io.IOException
InboundMessage
Iterator
of AttachmentData
.
getAttachments
in interface InboundMessage
Iterator
of AttachmentData
.
javax.mail.MessagingException
- if a server communication error occurs.
java.io.IOException
- if a server communication error occurs.public java.util.Iterator getHeaders() throws javax.mail.MessagingException
InboundMessage
Iterator
of strings.
getHeaders
in interface InboundMessage
Iterator
of strings.
javax.mail.MessagingException
- if a server communication error occurs.public javax.mail.Address[] getFrom() throws javax.mail.MessagingException
InboundMessage
getFrom
in interface InboundMessage
javax.mail.MessagingException
- if a server communication error occurs.public java.lang.String getSubject() throws javax.mail.MessagingException
InboundMessage
getSubject
in interface InboundMessage
javax.mail.MessagingException
- if a server communication error occurs.public java.lang.String[] getHeader(java.lang.String name) throws javax.mail.MessagingException
InboundMessage
getHeader
in interface InboundMessage
name
- the name to supply values for. *
javax.mail.MessagingException
- if a server communication error occurs.
|
Jive Forums Project Page | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |