@Override
public ChannelPipeline getPipeline() throws Exception {
ChannelPipeline pipeline = Channels.pipeline();
Timer timer = new HashedWheelTimer();
pipeline.addLast("timeout", new ReadTimeoutHandler(timer, 30));
pipeline.addLast("codec", new HttpClientCodec());
if (ssl) {
SSLContext sslContext = SSLContext.getInstance("TLS");
//sslContext.init(keyManagers, trustManagers, null);
SSLEngine engine = sslContext.createSSLEngine();