public void addProxyProtocol ( ChannelPipeline pipeline ) { pipeline . addLast ( NAME , this ) ; if ( withProxyProtocol ) { pipeline . addBefore ( NAME , OptionalHAProxyMessageDecoder . NAME , new OptionalHAProxyMessageDecoder ( ) ) ; } }
Setup the required handlers on pipeline using this method .