public abstract class AbstractChainedProcessor<M extends ImapMessage> extends Object implements ImapProcessor
ImapProcessor.Responder| Constructor and Description |
|---|
AbstractChainedProcessor(Class<M> acceptableClass,
ImapProcessor next)
Constructs a chainable
ImapProcessor. |
| Modifier and Type | Method and Description |
|---|---|
protected abstract void |
doProcess(M acceptableMessage,
ImapProcessor.Responder responder,
ImapSession session)
Processes an acceptable message.
|
protected boolean |
isAcceptable(ImapMessage message)
Is the given message acceptable?
|
void |
process(ImapMessage message,
ImapProcessor.Responder responder,
ImapSession session)
Performs processing of the command.
|
public AbstractChainedProcessor(Class<M> acceptableClass, ImapProcessor next)
ImapProcessor.next - next ImapProcessor in the chain, not nullpublic void process(ImapMessage message, ImapProcessor.Responder responder, ImapSession session)
ImapProcessorprocess in interface ImapProcessormessage - not nullresponder - not null, the responder use write response for messagesession - the imap sessionImapProcessor.process(org.apache.james.imap.api.ImapMessage,
org.apache.james.imap.api.process.ImapProcessor.Responder,
org.apache.james.imap.api.process.ImapSession)protected boolean isAcceptable(ImapMessage message)
message - ImapMessage, not nullprotected abstract void doProcess(M acceptableMessage, ImapProcessor.Responder responder, ImapSession session)
isAcceptable(ImapMessage) should be passed to this method.acceptableMessage - M, not nullresponder - Responder, not nullsession - ImapSession, not nullCopyright © 2010-2012 The Apache Software Foundation. All Rights Reserved.