Make hexdump proxy do hexdump

- Forgot to add LoggingHandler back into the pipeline
This commit is contained in:
Trustin Lee 2014-05-23 14:51:22 +09:00
parent 95c1013a34
commit 2ff4e458c1

View File

@ -18,6 +18,8 @@ package org.jboss.netty.example.proxy;
import org.jboss.netty.channel.ChannelPipeline;
import org.jboss.netty.channel.ChannelPipelineFactory;
import org.jboss.netty.channel.socket.ClientSocketChannelFactory;
import org.jboss.netty.handler.logging.LoggingHandler;
import org.jboss.netty.logging.InternalLogLevel;
import static org.jboss.netty.channel.Channels.*;
@ -31,6 +33,7 @@ public class HexDumpProxyPipelineFactory implements ChannelPipelineFactory {
public ChannelPipeline getPipeline() {
ChannelPipeline p = pipeline(); // Note the static import.
p.addLast("logger", new LoggingHandler(InternalLogLevel.INFO));
p.addLast("handler", new HexDumpProxyInboundHandler(cf));
return p;
}