Ejemplo n.º 1
0
 public _ChannelFutureListener_115(SimpleHttpProxyHandler _enclosing, ChannelHandlerContext
                                   ctx, HttpRequest req, IO.Netty.Channel.Channel client)
 {
     this._enclosing = _enclosing;
     this.ctx        = ctx;
     this.req        = req;
     this.client     = client;
 }
Ejemplo n.º 2
0
        /// <exception cref="System.Exception"/>
        protected override void ChannelRead0(ChannelHandlerContext ctx, HttpRequest req)
        {
            string          uri = req.GetUri();
            ChannelPipeline p   = ctx.Pipeline();

            if (uri.StartsWith(WebHdfsHandler.WebhdfsPrefix))
            {
                WebHdfsHandler h = new WebHdfsHandler(conf, confForCreate);
                p.Replace(this, typeof(WebHdfsHandler).Name, h);
                h.ChannelRead0(ctx, req);
            }
            else
            {
                SimpleHttpProxyHandler h = new SimpleHttpProxyHandler(proxyHost);
                p.Replace(this, typeof(SimpleHttpProxyHandler).Name, h);
                h.ChannelRead0(ctx, req);
            }
        }
Ejemplo n.º 3
0
 public _ChannelInitializer_106(SimpleHttpProxyHandler _enclosing, IO.Netty.Channel.Channel
                                client)
 {
     this._enclosing = _enclosing;
     this.client     = client;
 }