Class HttpProxyExample.RequestHandler

java.lang.Object
org.apache.hbase.thirdparty.io.netty.channel.ChannelHandlerAdapter
org.apache.hbase.thirdparty.io.netty.channel.ChannelInboundHandlerAdapter
org.apache.hbase.thirdparty.io.netty.channel.SimpleChannelInboundHandler<org.apache.hbase.thirdparty.io.netty.handler.codec.http.FullHttpRequest>
org.apache.hadoop.hbase.client.example.HttpProxyExample.RequestHandler
All Implemented Interfaces:
org.apache.hbase.thirdparty.io.netty.channel.ChannelHandler, org.apache.hbase.thirdparty.io.netty.channel.ChannelInboundHandler
Enclosing class:
HttpProxyExample

private static final class HttpProxyExample.RequestHandler extends org.apache.hbase.thirdparty.io.netty.channel.SimpleChannelInboundHandler<org.apache.hbase.thirdparty.io.netty.handler.codec.http.FullHttpRequest>
  • Nested Class Summary

    Nested classes/interfaces inherited from interface org.apache.hbase.thirdparty.io.netty.channel.ChannelHandler

    org.apache.hbase.thirdparty.io.netty.channel.ChannelHandler.Sharable
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private final org.apache.hbase.thirdparty.io.netty.channel.group.ChannelGroup
     
    private final AsyncConnection
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    RequestHandler(AsyncConnection conn, org.apache.hbase.thirdparty.io.netty.channel.group.ChannelGroup channelGroup)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    channelActive(org.apache.hbase.thirdparty.io.netty.channel.ChannelHandlerContext ctx)
     
    void
    channelInactive(org.apache.hbase.thirdparty.io.netty.channel.ChannelHandlerContext ctx)
     
    protected void
    channelRead0(org.apache.hbase.thirdparty.io.netty.channel.ChannelHandlerContext ctx, org.apache.hbase.thirdparty.io.netty.handler.codec.http.FullHttpRequest req)
     
    void
    exceptionCaught(org.apache.hbase.thirdparty.io.netty.channel.ChannelHandlerContext ctx, Throwable cause)
     
    private void
    get(org.apache.hbase.thirdparty.io.netty.channel.ChannelHandlerContext ctx, org.apache.hbase.thirdparty.io.netty.handler.codec.http.FullHttpRequest req)
     
    parse(org.apache.hbase.thirdparty.io.netty.handler.codec.http.FullHttpRequest req)
     
    private void
    put(org.apache.hbase.thirdparty.io.netty.channel.ChannelHandlerContext ctx, org.apache.hbase.thirdparty.io.netty.handler.codec.http.FullHttpRequest req)
     
    private void
    write(org.apache.hbase.thirdparty.io.netty.channel.ChannelHandlerContext ctx, org.apache.hbase.thirdparty.io.netty.handler.codec.http.HttpResponseStatus status)
     
    private void
    write(org.apache.hbase.thirdparty.io.netty.channel.ChannelHandlerContext ctx, org.apache.hbase.thirdparty.io.netty.handler.codec.http.HttpResponseStatus status, String content)
     

    Methods inherited from class org.apache.hbase.thirdparty.io.netty.channel.SimpleChannelInboundHandler

    acceptInboundMessage, channelRead

    Methods inherited from class org.apache.hbase.thirdparty.io.netty.channel.ChannelInboundHandlerAdapter

    channelReadComplete, channelRegistered, channelUnregistered, channelWritabilityChanged, userEventTriggered

    Methods inherited from class org.apache.hbase.thirdparty.io.netty.channel.ChannelHandlerAdapter

    ensureNotSharable, handlerAdded, handlerRemoved, isSharable

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.apache.hbase.thirdparty.io.netty.channel.ChannelHandler

    handlerAdded, handlerRemoved
  • Field Details

  • Constructor Details

  • Method Details

    • channelActive

      public void channelActive(org.apache.hbase.thirdparty.io.netty.channel.ChannelHandlerContext ctx)
      Specified by:
      channelActive in interface org.apache.hbase.thirdparty.io.netty.channel.ChannelInboundHandler
      Overrides:
      channelActive in class org.apache.hbase.thirdparty.io.netty.channel.ChannelInboundHandlerAdapter
    • channelInactive

      public void channelInactive(org.apache.hbase.thirdparty.io.netty.channel.ChannelHandlerContext ctx)
      Specified by:
      channelInactive in interface org.apache.hbase.thirdparty.io.netty.channel.ChannelInboundHandler
      Overrides:
      channelInactive in class org.apache.hbase.thirdparty.io.netty.channel.ChannelInboundHandlerAdapter
    • write

      private void write(org.apache.hbase.thirdparty.io.netty.channel.ChannelHandlerContext ctx, org.apache.hbase.thirdparty.io.netty.handler.codec.http.HttpResponseStatus status)
    • write

      private void write(org.apache.hbase.thirdparty.io.netty.channel.ChannelHandlerContext ctx, org.apache.hbase.thirdparty.io.netty.handler.codec.http.HttpResponseStatus status, String content)
    • parse

      private HttpProxyExample.Params parse(org.apache.hbase.thirdparty.io.netty.handler.codec.http.FullHttpRequest req)
    • get

      private void get(org.apache.hbase.thirdparty.io.netty.channel.ChannelHandlerContext ctx, org.apache.hbase.thirdparty.io.netty.handler.codec.http.FullHttpRequest req)
    • put

      private void put(org.apache.hbase.thirdparty.io.netty.channel.ChannelHandlerContext ctx, org.apache.hbase.thirdparty.io.netty.handler.codec.http.FullHttpRequest req)
    • channelRead0

      protected void channelRead0(org.apache.hbase.thirdparty.io.netty.channel.ChannelHandlerContext ctx, org.apache.hbase.thirdparty.io.netty.handler.codec.http.FullHttpRequest req)
      Specified by:
      channelRead0 in class org.apache.hbase.thirdparty.io.netty.channel.SimpleChannelInboundHandler<org.apache.hbase.thirdparty.io.netty.handler.codec.http.FullHttpRequest>
    • exceptionCaught

      public void exceptionCaught(org.apache.hbase.thirdparty.io.netty.channel.ChannelHandlerContext ctx, Throwable cause)
      Specified by:
      exceptionCaught in interface org.apache.hbase.thirdparty.io.netty.channel.ChannelHandler
      Specified by:
      exceptionCaught in interface org.apache.hbase.thirdparty.io.netty.channel.ChannelInboundHandler
      Overrides:
      exceptionCaught in class org.apache.hbase.thirdparty.io.netty.channel.ChannelInboundHandlerAdapter