public class MailboxAdapter extends Object implements org.apache.james.protocols.pop3.mailbox.Mailbox
| Constructor and Description |
|---|
MailboxAdapter(org.apache.james.mailbox.MailboxManager mailboxManager,
org.apache.james.mailbox.MessageManager manager,
org.apache.james.mailbox.MailboxSession session) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
String |
getIdentifier() |
InputStream |
getMessage(long uid) |
InputStream |
getMessageBody(long uid) |
InputStream |
getMessageHeaders(long uid) |
List<org.apache.james.protocols.pop3.mailbox.MessageMetaData> |
getMessages() |
void |
remove(long... uids) |
public MailboxAdapter(org.apache.james.mailbox.MailboxManager mailboxManager,
org.apache.james.mailbox.MessageManager manager,
org.apache.james.mailbox.MailboxSession session)
public InputStream getMessageBody(long uid) throws IOException
getMessageBody in interface org.apache.james.protocols.pop3.mailbox.MailboxIOExceptionpublic InputStream getMessageHeaders(long uid) throws IOException
getMessageHeaders in interface org.apache.james.protocols.pop3.mailbox.MailboxIOExceptionpublic InputStream getMessage(long uid) throws IOException
getMessage in interface org.apache.james.protocols.pop3.mailbox.MailboxIOExceptionpublic List<org.apache.james.protocols.pop3.mailbox.MessageMetaData> getMessages() throws IOException
getMessages in interface org.apache.james.protocols.pop3.mailbox.MailboxIOExceptionpublic void remove(long... uids)
throws IOException
remove in interface org.apache.james.protocols.pop3.mailbox.MailboxIOExceptionpublic String getIdentifier() throws IOException
getIdentifier in interface org.apache.james.protocols.pop3.mailbox.MailboxIOExceptionpublic void close()
throws IOException
close in interface org.apache.james.protocols.pop3.mailbox.MailboxIOExceptionCopyright © 2002-2012 The Apache Software Foundation. All Rights Reserved.