Package org.apache.flink.runtime.rest
Class FileUploadHandler
- java.lang.Object
-
- org.apache.flink.shaded.netty4.io.netty.channel.ChannelHandlerAdapter
-
- org.apache.flink.shaded.netty4.io.netty.channel.ChannelInboundHandlerAdapter
-
- org.apache.flink.shaded.netty4.io.netty.channel.SimpleChannelInboundHandler<org.apache.flink.shaded.netty4.io.netty.handler.codec.http.HttpObject>
-
- org.apache.flink.runtime.rest.FileUploadHandler
-
- All Implemented Interfaces:
org.apache.flink.shaded.netty4.io.netty.channel.ChannelHandler
,org.apache.flink.shaded.netty4.io.netty.channel.ChannelInboundHandler
public class FileUploadHandler extends org.apache.flink.shaded.netty4.io.netty.channel.SimpleChannelInboundHandler<org.apache.flink.shaded.netty4.io.netty.handler.codec.http.HttpObject>
Writes multipart/form-data to disk. Delegates all other requests to the nextChannelInboundHandler
in theChannelPipeline
.
-
-
Field Summary
Fields Modifier and Type Field Description static String
HTTP_ATTRIBUTE_REQUEST
-
Constructor Summary
Constructors Constructor Description FileUploadHandler(Path uploadDir, MultipartRoutes multipartRoutes)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
channelRead0(org.apache.flink.shaded.netty4.io.netty.channel.ChannelHandlerContext ctx, org.apache.flink.shaded.netty4.io.netty.handler.codec.http.HttpObject msg)
static FileUploads
getMultipartFileUploads(org.apache.flink.shaded.netty4.io.netty.channel.ChannelHandlerContext ctx)
-
Methods inherited from class org.apache.flink.shaded.netty4.io.netty.channel.SimpleChannelInboundHandler
acceptInboundMessage, channelRead
-
Methods inherited from class org.apache.flink.shaded.netty4.io.netty.channel.ChannelInboundHandlerAdapter
channelActive, channelInactive, channelReadComplete, channelRegistered, channelUnregistered, channelWritabilityChanged, exceptionCaught, userEventTriggered
-
Methods inherited from class org.apache.flink.shaded.netty4.io.netty.channel.ChannelHandlerAdapter
ensureNotSharable, handlerAdded, handlerRemoved, isSharable
-
-
-
-
Field Detail
-
HTTP_ATTRIBUTE_REQUEST
public static final String HTTP_ATTRIBUTE_REQUEST
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
FileUploadHandler
public FileUploadHandler(Path uploadDir, MultipartRoutes multipartRoutes)
-
-
Method Detail
-
channelRead0
protected void channelRead0(org.apache.flink.shaded.netty4.io.netty.channel.ChannelHandlerContext ctx, org.apache.flink.shaded.netty4.io.netty.handler.codec.http.HttpObject msg) throws Exception
- Specified by:
channelRead0
in classorg.apache.flink.shaded.netty4.io.netty.channel.SimpleChannelInboundHandler<org.apache.flink.shaded.netty4.io.netty.handler.codec.http.HttpObject>
- Throws:
Exception
-
getMultipartFileUploads
public static FileUploads getMultipartFileUploads(org.apache.flink.shaded.netty4.io.netty.channel.ChannelHandlerContext ctx)
-
-