@ChannelHandler.Sharable
public class HttpRequestHandler
extends org.apache.flink.shaded.netty4.io.netty.channel.SimpleChannelInboundHandler<org.apache.flink.shaded.netty4.io.netty.handler.codec.http.HttpObject>
| Constructor and Description |
|---|
HttpRequestHandler(File tmpDir) |
| Modifier and Type | Method and Description |
|---|---|
void |
channelRead0(org.apache.flink.shaded.netty4.io.netty.channel.ChannelHandlerContext ctx,
org.apache.flink.shaded.netty4.io.netty.handler.codec.http.HttpObject msg) |
void |
channelUnregistered(org.apache.flink.shaded.netty4.io.netty.channel.ChannelHandlerContext ctx) |
static void |
checkAndCreateUploadDir(File uploadDir)
Checks whether the given directory exists and is writable.
|
static void |
logExternalUploadDirDeletion(File uploadDir) |
acceptInboundMessage, channelReadchannelActive, channelInactive, channelReadComplete, channelRegistered, channelWritabilityChanged, exceptionCaught, userEventTriggeredensureNotSharable, handlerAdded, handlerRemoved, isSharablepublic HttpRequestHandler(File tmpDir)
public void channelUnregistered(org.apache.flink.shaded.netty4.io.netty.channel.ChannelHandlerContext ctx)
throws Exception
channelUnregistered in interface org.apache.flink.shaded.netty4.io.netty.channel.ChannelInboundHandlerchannelUnregistered in class org.apache.flink.shaded.netty4.io.netty.channel.ChannelInboundHandlerAdapterExceptionpublic void channelRead0(org.apache.flink.shaded.netty4.io.netty.channel.ChannelHandlerContext ctx,
org.apache.flink.shaded.netty4.io.netty.handler.codec.http.HttpObject msg)
channelRead0 in class org.apache.flink.shaded.netty4.io.netty.channel.SimpleChannelInboundHandler<org.apache.flink.shaded.netty4.io.netty.handler.codec.http.HttpObject>public static void logExternalUploadDirDeletion(File uploadDir)
public static void checkAndCreateUploadDir(File uploadDir) throws IOException
uploadDir - directory to checkIOException - if the directory does not exist and cannot be created, or if the
directory isn't writableCopyright © 2014–2021 The Apache Software Foundation. All rights reserved.