public class EnableProcessor extends AbstractMailboxProcessor<EnableRequest> implements CapabilityImplementingProcessor
ImapProcessor.Responder| Modifier and Type | Field and Description |
|---|---|
static String |
ENABLED_CAPABILITIES |
| Constructor and Description |
|---|
EnableProcessor(ImapProcessor next,
org.apache.james.mailbox.MailboxManager mailboxManager,
StatusResponseFactory factory) |
EnableProcessor(ImapProcessor next,
org.apache.james.mailbox.MailboxManager mailboxManager,
StatusResponseFactory factory,
List<PermitEnableCapabilityProcessor> capabilities) |
| Modifier and Type | Method and Description |
|---|---|
void |
addProcessor(PermitEnableCapabilityProcessor implementor)
Add a
PermitEnableCapabilityProcessor which can be enabled |
protected void |
doProcess(EnableRequest request,
ImapSession session,
String tag,
ImapCommand command,
ImapProcessor.Responder responder) |
static Set<String> |
enable(ImapRequest request,
ImapProcessor.Responder responder,
ImapSession session,
Iterator<String> caps) |
static Set<String> |
getEnabledCapabilities(ImapSession session)
Return all enabled
CAPABILITIES for this ImapSession |
List<String> |
getImplementedCapabilities(ImapSession session)
Return a list of all Capabilities that are implemented by the Processor
|
addFlagsResponses, buildFullPath, bye, bye, condstoreEnablingCommand, doProcess, flags, getMailboxManager, getSelectedMailbox, getStatusResponseFactory, idRanges, mailboxName, messageRange, no, no, normalizeMessageRange, okComplete, okComplete, permanentFlags, process, respondVanished, taggedBad, unsolicitedResponses, unsolicitedResponsesisAcceptable, processclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitprocesspublic static final String ENABLED_CAPABILITIES
public EnableProcessor(ImapProcessor next, org.apache.james.mailbox.MailboxManager mailboxManager, StatusResponseFactory factory, List<PermitEnableCapabilityProcessor> capabilities)
public EnableProcessor(ImapProcessor next, org.apache.james.mailbox.MailboxManager mailboxManager, StatusResponseFactory factory)
protected void doProcess(EnableRequest request, ImapSession session, String tag, ImapCommand command, ImapProcessor.Responder responder)
doProcess in class AbstractMailboxProcessor<EnableRequest>#doProcess(org.apache.james.imap.api.message.request.ImapRequest,
org.apache.james.imap.api.process.ImapSession, java.lang.String,
org.apache.james.imap.api.ImapCommand, org.apache.james.imap.api.process.ImapProcessor.Responder)public static Set<String> enable(ImapRequest request, ImapProcessor.Responder responder, ImapSession session, Iterator<String> caps) throws PermitEnableCapabilityProcessor.EnableException
public void addProcessor(PermitEnableCapabilityProcessor implementor)
PermitEnableCapabilityProcessor which can be enabledimplementor - public static Set<String> getEnabledCapabilities(ImapSession session)
CAPABILITIES for this ImapSessionsession - public List<String> getImplementedCapabilities(ImapSession session)
CapabilityImplementingProcessorgetImplementedCapabilities in interface CapabilityImplementingProcessor#getImplementedCapabilities(org.apache.james.imap.api.process.ImapSession)Copyright © 2010-2012 The Apache Software Foundation. All Rights Reserved.