In my netty client I have a initial pipeline with only a ChannelInboundHandlerAdapter. With this handler I handle the handshake of my protocol. After that I neeed to modify the pipeline for normal use. This means I need to remove the ChannelInboundHandlerAdapter and add LengthFieldPrepender/LengthFieldBasedFrameDecoder, Encoder/Decoder and a Handler.
What is the best way to do this?