@Entity(name="Message") public class JPAStreamingMessage extends AbstractJPAMessage
AbstractJPAMessage which use openjpas Persistent type to
be able to stream the message content without loading it into the memory at all.
This is not supported for all DB's yet. See Additional JPA Mappings
If your DB is not supported by this, use JPAMessage
TODO: Fix me!AbstractJPAMessage.MailboxIdUidKey| Constructor and Description |
|---|
JPAStreamingMessage()
Deprecated.
|
JPAStreamingMessage(JPAMailbox mailbox,
Date internalDate,
int size,
javax.mail.Flags flags,
javax.mail.internet.SharedInputStream content,
int bodyStartOctet,
org.apache.james.mailbox.store.mail.model.impl.PropertyBuilder propertyBuilder) |
JPAStreamingMessage(JPAMailbox mailbox,
long uid,
long modSeq,
org.apache.james.mailbox.store.mail.model.Message<?> message)
Create a copy of the given message
|
| Modifier and Type | Method and Description |
|---|---|
InputStream |
getBodyContent() |
InputStream |
getHeaderContent() |
createUserFlags, equals, getBodyStartOctet, getFullContentOctets, getInternalDate, getMailbox, getMailboxId, getMediaType, getModSeq, getProperties, getSubType, getTextualLineCount, getUid, hashCode, isAnswered, isDeleted, isDraft, isFlagged, isRecent, isSeen, setFlags, setMailbox, setModSeq, setUid, toString@Deprecated public JPAStreamingMessage()
public JPAStreamingMessage(JPAMailbox mailbox, Date internalDate, int size, javax.mail.Flags flags, javax.mail.internet.SharedInputStream content, int bodyStartOctet, org.apache.james.mailbox.store.mail.model.impl.PropertyBuilder propertyBuilder) throws org.apache.james.mailbox.exception.MailboxException
org.apache.james.mailbox.exception.MailboxExceptionpublic JPAStreamingMessage(JPAMailbox mailbox, long uid, long modSeq, org.apache.james.mailbox.store.mail.model.Message<?> message) throws org.apache.james.mailbox.exception.MailboxException
message - IOExceptionorg.apache.james.mailbox.exception.MailboxExceptionpublic InputStream getBodyContent() throws IOException
IOExceptionMessage.getBodyContent()public InputStream getHeaderContent() throws IOException
IOExceptionMessage.getHeaderContent()Copyright © 2010-2013 The Apache Software Foundation. All Rights Reserved.