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.Mailbox
IOException
public InputStream getMessageHeaders(long uid) throws IOException
getMessageHeaders
in interface org.apache.james.protocols.pop3.mailbox.Mailbox
IOException
public InputStream getMessage(long uid) throws IOException
getMessage
in interface org.apache.james.protocols.pop3.mailbox.Mailbox
IOException
public List<org.apache.james.protocols.pop3.mailbox.MessageMetaData> getMessages() throws IOException
getMessages
in interface org.apache.james.protocols.pop3.mailbox.Mailbox
IOException
public void remove(long... uids) throws IOException
remove
in interface org.apache.james.protocols.pop3.mailbox.Mailbox
IOException
public String getIdentifier() throws IOException
getIdentifier
in interface org.apache.james.protocols.pop3.mailbox.Mailbox
IOException
public void close() throws IOException
close
in interface org.apache.james.protocols.pop3.mailbox.Mailbox
IOException
Copyright © 2002-2012 The Apache Software Foundation. All Rights Reserved.