Class HttpMultiPartContentCodec

  • All Implemented Interfaces:,

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

      • Nested classes/interfaces inherited from interface
    • Constructor Summary

      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,
                                         java.util.function.IntSupplier maxChunkSize,
                                         java.util.function.IntSupplier maxContentLength)
    • Method Detail

      • checkUnwrapBoundary

        protected boolean checkUnwrapBoundary​( ch,
                                              java.lang.String boundary)
      • initChannel

        protected void initChannel​( 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<>
        ch - the Channel which was registered.
        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.