@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, channelRead
channelActive, channelInactive, channelReadComplete, channelRegistered, channelWritabilityChanged, exceptionCaught, userEventTriggered
ensureNotSharable, handlerAdded, handlerRemoved, isSharable
public 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.ChannelInboundHandler
channelUnregistered
in class org.apache.flink.shaded.netty4.io.netty.channel.ChannelInboundHandlerAdapter
Exception
public 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–2024 The Apache Software Foundation. All rights reserved.