public void addToChannel ( Channel ch ) throws IOException { ch . pipeline ( ) . addFirst ( ENCRYPTION_HANDLER_NAME , new EncryptionHandler ( this ) ) . addFirst ( DECRYPTION_HANDLER_NAME , new DecryptionHandler ( this ) ) ; }
Add handlers to channel .