public class WebHdfsHandler extends io.netty.channel.SimpleChannelInboundHandler<io.netty.handler.codec.http.HttpRequest>
| Modifier and Type | Field and Description |
|---|---|
static String |
APPLICATION_JSON_UTF8 |
static String |
APPLICATION_OCTET_STREAM |
static String |
WEBHDFS_PREFIX |
static int |
WEBHDFS_PREFIX_LENGTH |
| Constructor and Description |
|---|
WebHdfsHandler(Configuration conf,
Configuration confForCreate) |
| Modifier and Type | Method and Description |
|---|---|
void |
channelRead0(io.netty.channel.ChannelHandlerContext ctx,
io.netty.handler.codec.http.HttpRequest req) |
void |
exceptionCaught(io.netty.channel.ChannelHandlerContext ctx,
Throwable cause) |
void |
handle(io.netty.channel.ChannelHandlerContext ctx,
io.netty.handler.codec.http.HttpRequest req) |
acceptInboundMessage, channelReadchannelActive, channelInactive, channelReadComplete, channelRegistered, channelUnregistered, channelWritabilityChanged, userEventTriggeredhandlerAdded, handlerRemoved, isSharablepublic static final String WEBHDFS_PREFIX
public static final int WEBHDFS_PREFIX_LENGTH
public static final String APPLICATION_OCTET_STREAM
public static final String APPLICATION_JSON_UTF8
public WebHdfsHandler(Configuration conf, Configuration confForCreate) throws IOException
IOExceptionpublic void channelRead0(io.netty.channel.ChannelHandlerContext ctx, io.netty.handler.codec.http.HttpRequest req) throws Exception
channelRead0 in class io.netty.channel.SimpleChannelInboundHandler<io.netty.handler.codec.http.HttpRequest>Exceptionpublic void handle(io.netty.channel.ChannelHandlerContext ctx, io.netty.handler.codec.http.HttpRequest req) throws IOException, URISyntaxException
IOExceptionURISyntaxExceptionpublic void exceptionCaught(io.netty.channel.ChannelHandlerContext ctx, Throwable cause)
exceptionCaught in interface io.netty.channel.ChannelHandlerexceptionCaught in interface io.netty.channel.ChannelInboundHandlerexceptionCaught in class io.netty.channel.ChannelInboundHandlerAdapterCopyright © 2018 CERN. All Rights Reserved.