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
Modifier and TypeFieldDescriptionprivate final org.apache.hbase.thirdparty.io.netty.channel.group.ChannelGroup
private final AsyncConnection
-
Constructor Summary
ConstructorDescriptionRequestHandler
(AsyncConnection conn, org.apache.hbase.thirdparty.io.netty.channel.group.ChannelGroup channelGroup) -
Method Summary
Modifier and TypeMethodDescriptionvoid
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) private HttpProxyExample.Params
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
-
conn
-
channelGroup
-
-
Constructor Details
-
RequestHandler
public RequestHandler(AsyncConnection conn, org.apache.hbase.thirdparty.io.netty.channel.group.ChannelGroup channelGroup)
-
-
Method Details
-
channelActive
- Specified by:
channelActive
in interfaceorg.apache.hbase.thirdparty.io.netty.channel.ChannelInboundHandler
- Overrides:
channelActive
in classorg.apache.hbase.thirdparty.io.netty.channel.ChannelInboundHandlerAdapter
-
channelInactive
- Specified by:
channelInactive
in interfaceorg.apache.hbase.thirdparty.io.netty.channel.ChannelInboundHandler
- Overrides:
channelInactive
in classorg.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
-
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 classorg.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 interfaceorg.apache.hbase.thirdparty.io.netty.channel.ChannelHandler
- Specified by:
exceptionCaught
in interfaceorg.apache.hbase.thirdparty.io.netty.channel.ChannelInboundHandler
- Overrides:
exceptionCaught
in classorg.apache.hbase.thirdparty.io.netty.channel.ChannelInboundHandlerAdapter
-