com.yahoo.imapnio.async.netty.ImapClientCommandRespHandler Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of imapnio.core Show documentation
Show all versions of imapnio.core Show documentation
imapnio component ${project.name}
The newest version!
package com.yahoo.imapnio.async.netty;
import java.util.List;
import javax.annotation.Nonnull;
import com.sun.mail.imap.protocol.IMAPResponse;
import io.netty.channel.ChannelHandlerContext;
import io.netty.handler.codec.MessageToMessageDecoder;
import io.netty.handler.timeout.IdleState;
import io.netty.handler.timeout.IdleStateEvent;
/**
* This class handles the business logic of how to process messages and handle events.
*/
public class ImapClientCommandRespHandler extends MessageToMessageDecoder {
/** Literal for the name registered in pipeline. */
public static final String HANDLER_NAME = "ImapClientCommandRespHandler";
/** The imap channel event processor. */
private ImapCommandChannelEventProcessor processor;
/**
* Initialized a handler to process pipeline response and events. This handler should include client business logic.
*
* @param processor imap channel processor that handles the imap events
*/
public ImapClientCommandRespHandler(@Nonnull final ImapCommandChannelEventProcessor processor) {
this.processor = processor;
}
@Override
public void decode(final ChannelHandlerContext ctx, final IMAPResponse msg, final List
© 2015 - 2024 Weber Informatics LLC | Privacy Policy