
public abstract class OneToOneEncoder extends Object implements ChannelDownstreamHandler
ChannelPipelinepipeline = ...; // Decoders pipeline.addLast("frameDecoder", newDelimiterBasedFrameDecoder(80,Delimiters.nulDelimiter())); pipeline.addLast("customDecoder", newOneToOneDecoder() { ... }); // Encoder pipeline.addLast("customEncoder", newOneToOneEncoder() { ... });
| Modifier | Constructor and Description |
|---|---|
protected |
OneToOneEncoder() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract Object |
encode(ChannelHandlerContext ctx,
Channel channel,
Object msg) |
void |
handleDownstream(ChannelHandlerContext ctx,
ChannelEvent evt)
Handles the specified downstream event.
|
public void handleDownstream(ChannelHandlerContext ctx, ChannelEvent evt) throws Exception
ChannelDownstreamHandlerhandleDownstream in interface ChannelDownstreamHandlerctx - the context object for this handlerevt - the downstream event to process or interceptExceptionCopyright © 2008-2013 JBoss, by Red Hat. All Rights Reserved.