Class HttpPostRequestDecoder

java.lang.Object
io.netty.handler.codec.http.multipart.HttpPostRequestDecoder
All Implemented Interfaces:
InterfaceHttpPostRequestDecoder

public class HttpPostRequestDecoder extends java.lang.Object implements InterfaceHttpPostRequestDecoder
This decoder will decode Body and can handle POST BODY. You MUST call destroy() after completion to release all resources.
  • Field Details

  • Constructor Details

    • HttpPostRequestDecoder

      public HttpPostRequestDecoder(HttpRequest request)
      Parameters:
      request - the request to decode
      Throws:
      java.lang.NullPointerException - for request
      HttpPostRequestDecoder.ErrorDataDecoderException - if the default charset was wrong when decoding or other errors
    • HttpPostRequestDecoder

      public HttpPostRequestDecoder(HttpRequest request, int maxFields, int maxBufferedBytes)
      Parameters:
      request - the request to decode
      maxFields - the maximum number of fields the form can have, -1 to disable
      maxBufferedBytes - the maximum number of bytes the decoder can buffer when decoding a field, -1 to disable
      Throws:
      java.lang.NullPointerException - for request
      HttpPostRequestDecoder.ErrorDataDecoderException - if the default charset was wrong when decoding or other errors
    • HttpPostRequestDecoder

      public HttpPostRequestDecoder(HttpDataFactory factory, HttpRequest request)
      Parameters:
      factory - the factory used to create InterfaceHttpData
      request - the request to decode
      Throws:
      java.lang.NullPointerException - for request or factory
      HttpPostRequestDecoder.ErrorDataDecoderException - if the default charset was wrong when decoding or other errors
    • HttpPostRequestDecoder

      public HttpPostRequestDecoder(HttpDataFactory factory, HttpRequest request, java.nio.charset.Charset charset)
      Parameters:
      factory - the factory used to create InterfaceHttpData
      request - the request to decode
      charset - the charset to use as default
      Throws:
      java.lang.NullPointerException - for request or charset or factory
      HttpPostRequestDecoder.ErrorDataDecoderException - if the default charset was wrong when decoding or other errors
    • HttpPostRequestDecoder

      public HttpPostRequestDecoder(HttpDataFactory factory, HttpRequest request, java.nio.charset.Charset charset, int maxFields, int maxBufferedBytes)
      Parameters:
      factory - the factory used to create InterfaceHttpData
      request - the request to decode
      charset - the charset to use as default
      maxFields - the maximum number of fields the form can have, -1 to disable
      maxBufferedBytes - the maximum number of bytes the decoder can buffer when decoding a field, -1 to disable
      Throws:
      java.lang.NullPointerException - for request or charset or factory
      HttpPostRequestDecoder.ErrorDataDecoderException - if the default charset was wrong when decoding or other errors
  • Method Details