public class FetchResponseEncoder extends AbstractChainedImapEncoder
| Constructor and Description |
|---|
FetchResponseEncoder(ImapEncoder next,
boolean neverAddBodyStructureExtensions)
Constructs an encoder for FETCH messages.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
doEncode(ImapMessage acceptableMessage,
ImapResponseComposer composer,
ImapSession session)
Processes an acceptable message.
|
boolean |
isAcceptable(ImapMessage message)
Is the given message acceptable?
|
chainEncode, encodepublic static final String ENVELOPE
public FetchResponseEncoder(ImapEncoder next, boolean neverAddBodyStructureExtensions)
next - not nullneverAddBodyStructureExtensions - true to activate a workaround for broken clients who cannot
parse BODYSTRUCTURE extensions, false to fully support RFC3501public boolean isAcceptable(ImapMessage message)
AbstractChainedImapEncoderisAcceptable in class AbstractChainedImapEncodermessage - ImapMessage, not nullprotected void doEncode(ImapMessage acceptableMessage, ImapResponseComposer composer, ImapSession session) throws IOException
AbstractChainedImapEncoderAbstractChainedImapEncoder.isAcceptable(ImapMessage) should be passed to this method.doEncode in class AbstractChainedImapEncoderacceptableMessage - ImapMessage, not nullcomposer - ImapResponseComposer, not nullsession - TODOIOExceptionCopyright © 2010-2012 The Apache Software Foundation. All Rights Reserved.