@@ -0,0 +1,987 @@
+package org.jboss.resteasy.plugins.server.netty;%0A%0Aimport javax.net.ssl.SSLContext;%0Aimport javax.net.ssl.SSLEngine;%0A%0Aimport org.jboss.netty.channel.ChannelPipeline;%0Aimport org.jboss.netty.handler.execution.ExecutionHandler;%0Aimport org.jboss.netty.handler.ssl.SslHandler;%0A%0A/**%0A * Enable the use of HTTPS%0A * %0A * @author Norman Maurer%0A *%0A */%0Apublic class HttpsServerPipelineFactory extends HttpServerPipelineFactory %7B%0A%0A    private final SSLContext context;%0A%0A    public HttpsServerPipelineFactory(RequestDispatcher dispatcher, String root, ExecutionHandler executionHandler, SSLContext context) %7B%0A        super(dispatcher, root, executionHandler);%0A        this.context = context;%0A    %7D%0A%0A    @Override%0A    public ChannelPipeline getPipeline() throws Exception %7B%0A        ChannelPipeline cp = super.getPipeline();%0A        SSLEngine engine = context.createSSLEngine();%0A        engine.setUseClientMode(false);%0A        cp.addFirst(%22sslHandler%22, new SslHandler(engine));%0A        return cp;%0A    %7D%0A%0A%7D%0A

Add support for HTTPS