com.ning.http.client.providers.netty
Class SslInitializer

java.lang.Object
  extended by org.jboss.netty.channel.SimpleChannelDownstreamHandler
      extended by com.ning.http.client.providers.netty.SslInitializer
All Implemented Interfaces:
org.jboss.netty.channel.ChannelDownstreamHandler, org.jboss.netty.channel.ChannelHandler

public class SslInitializer
extends org.jboss.netty.channel.SimpleChannelDownstreamHandler

On connect, replaces itself with a SslHandler that has a SSLEngine configured with the remote host and port.

Author:
slandelle

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.jboss.netty.channel.ChannelHandler
org.jboss.netty.channel.ChannelHandler.Sharable
 
Constructor Summary
SslInitializer(NettyAsyncHttpProvider provider)
           
 
Method Summary
 void connectRequested(org.jboss.netty.channel.ChannelHandlerContext ctx, org.jboss.netty.channel.ChannelStateEvent e)
           
 
Methods inherited from class org.jboss.netty.channel.SimpleChannelDownstreamHandler
bindRequested, closeRequested, disconnectRequested, handleDownstream, setInterestOpsRequested, unbindRequested, writeRequested
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SslInitializer

public SslInitializer(NettyAsyncHttpProvider provider)
Method Detail

connectRequested

public void connectRequested(org.jboss.netty.channel.ChannelHandlerContext ctx,
                             org.jboss.netty.channel.ChannelStateEvent e)
                      throws Exception
Overrides:
connectRequested in class org.jboss.netty.channel.SimpleChannelDownstreamHandler
Throws:
Exception


Copyright © 2014. All Rights Reserved.