~tritone-team/tritone/eucalyptus

« back to all changes in this revision

Viewing changes to clc/modules/wsstack/src/main/java/com/eucalyptus/ws/util/ChannelUtil.java

  • Committer: Bazaar Package Importer
  • Author(s): Dustin Kirkland
  • Date: 2009-12-01 21:09:28 UTC
  • mto: This revision was merged to the branch mainline in revision 75.
  • Revision ID: james.westby@ubuntu.com-20091201210928-o2dvg0ubljhb0ft6
Tags: upstream-1.6.1~bzr1083
ImportĀ upstreamĀ versionĀ 1.6.1~bzr1083

Show diffs side-by-side

added added

removed removed

Lines of Context:
30
30
import com.eucalyptus.ws.client.NioBootstrap;
31
31
import com.eucalyptus.ws.handlers.ChannelStateMonitor;
32
32
import com.eucalyptus.ws.handlers.http.NioHttpDecoder;
 
33
import com.eucalyptus.ws.handlers.http.NioSslHandler;
33
34
import com.eucalyptus.ws.server.NioServerHandler;
34
35
 
35
36
public class ChannelUtil {
36
37
  static class NioServerPipelineFactory implements ChannelPipelineFactory {
37
38
    public ChannelPipeline getPipeline( ) throws Exception {
38
39
      final ChannelPipeline pipeline = Channels.pipeline( );
39
 
      // SSLEngine engine = NioSslHandler.getServerContext().createSSLEngine();
40
 
      // engine.setUseClientMode(false);
41
 
      // pipeline.addLast("ssl", new NioSslHandler(engine));
 
40
      pipeline.addLast("ssl", new NioSslHandler());
42
41
      ChannelUtil.addPipelineMonitors( pipeline );
43
42
      pipeline.addLast( "decoder", new NioHttpDecoder( ) );
44
43
      pipeline.addLast( "encoder", new HttpResponseEncoder( ) );