org.apache.james.imap.encode.imap4rev1.server
Class ListResponseEncoder

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.server.ListResponseEncoder
All Implemented Interfaces:
ImapEncoder

public class ListResponseEncoder
extends AbstractChainedImapEncoder

Encoders IMAP4rev1 List responses.


Constructor Summary
ListResponseEncoder(ImapEncoder next)
           
 
Method Summary
protected  void doEncode(ImapMessage acceptableMessage, ImapResponseComposer composer)
          Processes an acceptable message.
protected  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

ListResponseEncoder

public ListResponseEncoder(ImapEncoder next)
Method Detail

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

isAcceptable

protected 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


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