org.apache.james.imap.encode.imap4rev1
Class RecentResponseEncoder

java.lang.Object
  extended by org.apache.james.api.imap.AbstractLogEnabled
      extended by org.apache.james.imap.encode.base.AbstractChainedImapEncoder
          extended by org.apache.james.imap.encode.imap4rev1.RecentResponseEncoder
All Implemented Interfaces:
ImapEncoder

public class RecentResponseEncoder
extends AbstractChainedImapEncoder


Constructor Summary
RecentResponseEncoder(ImapEncoder next)
           
 
Method Summary
protected  void doEncode(ImapMessage acceptableMessage, ImapResponseComposer composer)
          Processes an acceptable message.
 boolean isAcceptable(ImapMessage message)
          Is the given message acceptable?
 
Methods inherited from class org.apache.james.imap.encode.base.AbstractChainedImapEncoder
chainEncode, chainEncodeAll, encode, setLog
 
Methods inherited from class org.apache.james.api.imap.AbstractLogEnabled
getLog, setupLogger
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RecentResponseEncoder

public RecentResponseEncoder(ImapEncoder next)
Method Detail

isAcceptable

public boolean isAcceptable(ImapMessage message)
Description copied from class: AbstractChainedImapEncoder
Is the given message acceptable?

Specified by:
isAcceptable in class AbstractChainedImapEncoder
Parameters:
message - ImapMessage, not null
Returns:
true if the given message is encodable by this encoder

doEncode

protected void doEncode(ImapMessage acceptableMessage,
                        ImapResponseComposer composer)
                 throws java.io.IOException
Description copied from class: AbstractChainedImapEncoder
Processes an acceptable message. Only messages passing AbstractChainedImapEncoder.isAcceptable(ImapMessage) should be passed to this method.

Specified by:
doEncode in class AbstractChainedImapEncoder
Parameters:
acceptableMessage - ImapMessage, not null
composer - ImapResponseComposer, not null
Throws:
java.io.IOException


Copyright © 2002-2008 The Apache Software Foundation. All Rights Reserved.