|
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.IMAPMessage
public class IMAPMessage
Implementation of InboundMessage
for IMAP protocol. This implementation delegates to an underlying Message
object in order to lazily read data from the server. Instances of this class are accessed by calling code through an
EmailBatch
, which allows the closing of server resources to be deferred. Once an IMAPMessage's enclosing
EmailBatch
is closed, calls to any methods of this object are likely to fail with an exception toss.
Constructor Summary | |
---|---|
IMAPMessage(javax.mail.Message original)
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 IMAPMessage(javax.mail.Message original)
original
- the original messageMethod Detail |
---|
public java.lang.String getBody() throws javax.mail.MessagingException, java.io.IOException, EmailMonitorException
InboundMessage
getBody
in interface InboundMessage
javax.mail.MessagingException
- if a server communication error occurs.
java.io.IOException
- if a server communication error occurs.
EmailMonitorException
- if the body is an unhandled content type.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 |