io.netty.channel.ChannelHandler, io.netty.channel.ChannelInboundHandlerpublic class WebHdfsHandler
extends io.netty.channel.SimpleChannelInboundHandler<io.netty.handler.codec.http.HttpRequest>
| Modifier and Type | Field | Description |
|---|---|---|
static java.lang.String |
APPLICATION_JSON_UTF8 |
|
static java.lang.String |
APPLICATION_OCTET_STREAM |
|
static java.util.EnumSet<org.apache.hadoop.fs.CreateFlag> |
EMPTY_CREATE_FLAG |
|
static java.lang.String |
WEBHDFS_PREFIX |
|
static int |
WEBHDFS_PREFIX_LENGTH |
| Constructor | Description |
|---|---|
WebHdfsHandler(org.apache.hadoop.conf.Configuration conf,
org.apache.hadoop.conf.Configuration confForCreate) |
| Modifier and Type | Method | Description |
|---|---|---|
void |
channelRead0(io.netty.channel.ChannelHandlerContext ctx,
io.netty.handler.codec.http.HttpRequest req) |
|
void |
exceptionCaught(io.netty.channel.ChannelHandlerContext ctx,
java.lang.Throwable cause) |
|
void |
handle(io.netty.channel.ChannelHandlerContext ctx,
io.netty.handler.codec.http.HttpRequest req) |
acceptInboundMessage, channelReadchannelActive, channelInactive, channelReadComplete, channelRegistered, channelUnregistered, channelWritabilityChanged, userEventTriggeredensureNotSharable, handlerAdded, handlerRemoved, isSharablepublic static final java.lang.String WEBHDFS_PREFIX
public static final int WEBHDFS_PREFIX_LENGTH
public static final java.lang.String APPLICATION_OCTET_STREAM
public static final java.lang.String APPLICATION_JSON_UTF8
public static final java.util.EnumSet<org.apache.hadoop.fs.CreateFlag> EMPTY_CREATE_FLAG
public WebHdfsHandler(org.apache.hadoop.conf.Configuration conf,
org.apache.hadoop.conf.Configuration confForCreate)
throws java.io.IOException
java.io.IOExceptionpublic void channelRead0(io.netty.channel.ChannelHandlerContext ctx,
io.netty.handler.codec.http.HttpRequest req)
throws java.lang.Exception
channelRead0 in class io.netty.channel.SimpleChannelInboundHandler<io.netty.handler.codec.http.HttpRequest>java.lang.Exceptionpublic void handle(io.netty.channel.ChannelHandlerContext ctx,
io.netty.handler.codec.http.HttpRequest req)
throws java.io.IOException,
java.net.URISyntaxException
java.io.IOExceptionjava.net.URISyntaxExceptionpublic void exceptionCaught(io.netty.channel.ChannelHandlerContext ctx,
java.lang.Throwable cause)
exceptionCaught in interface io.netty.channel.ChannelHandlerexceptionCaught in interface io.netty.channel.ChannelInboundHandlerexceptionCaught in class io.netty.channel.ChannelInboundHandlerAdapterCopyright © 2008–2025 Apache Software Foundation. All rights reserved.