Class HttpPostRequestDecoder

    • Constructor Detail

      • 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