Class HttpMultiPartContentCodec

  • All Implemented Interfaces:
    io.netty.channel.ChannelHandler, io.netty.channel.ChannelInboundHandler

    public class HttpMultiPartContentCodec
    extends SimpleChannelInitializer<io.netty.channel.Channel>
    Created by acurtis on 3/22/17.
    • Nested Class Summary

      • Nested classes/interfaces inherited from interface io.netty.channel.ChannelHandler

        io.netty.channel.ChannelHandler.Sharable
    • Constructor Summary

      Constructors 
      Constructor Description
      HttpMultiPartContentCodec​(int maxContentLength)  
      HttpMultiPartContentCodec​(java.util.function.IntSupplier maxHeaderSize, java.util.function.IntSupplier maxChunkSize, java.util.function.IntSupplier maxContentLength)  
    • Constructor Detail

      • HttpMultiPartContentCodec

        public HttpMultiPartContentCodec​(int maxContentLength)
      • HttpMultiPartContentCodec

        public HttpMultiPartContentCodec​(@Nonnull
                                         java.util.function.IntSupplier maxHeaderSize,
                                         @Nonnull
                                         java.util.function.IntSupplier maxChunkSize,
                                         @Nonnull
                                         java.util.function.IntSupplier maxContentLength)
    • Method Detail

      • checkUnwrapBoundary

        protected boolean checkUnwrapBoundary​(io.netty.channel.Channel ch,
                                              java.lang.String boundary)
      • initChannel

        protected void initChannel​(io.netty.channel.Channel ch)
                            throws java.lang.Exception
        Description copied from class: ChannelInitializer
        This method will be called once the Channel was registered. After the method returns this instance will be removed from the ChannelPipeline of the Channel.
        Specified by:
        initChannel in class ChannelInitializer<io.netty.channel.Channel>
        Parameters:
        ch - the Channel which was registered.
        Throws:
        java.lang.Exception - is thrown if an error occurs. In that case it will be handled by ChannelInitializer.exceptionCaught(ChannelHandlerContext, Throwable) which will by default close the Channel.