GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Overview
  • Use
  • Tree
  • Deprecated
  • Index
  • Search
  • Help
  • io.netty.handler.codec.http
  • ContentLengthNotAllowedException

This view

  • Original page
  • New address

GeezerVison is showing netty.io — ContentLengthNotAllowedException (Netty API Reference (4.1.141.Final))

Class ContentLengthNotAllowedException

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
io.netty.handler.codec.CodecException
io.netty.handler.codec.DecoderException
io.netty.handler.codec.http.ContentLengthNotAllowedException
All Implemented Interfaces:
Serializable

public final class ContentLengthNotAllowedException extends DecoderException
Thrown by HttpObjectDecoder.handleTransferEncodingChunkedWithContentLength(HttpMessage) by default.

The HTTP/1.1 specification, RFC 9112, disallow senders from including both Tranfer-Encoding and

invalid @code
{@code Content-Length headers in the same message, and permits servers to reject such requests.
See Also:
  • Serialized Form
  • Constructor Summary

    Constructors
    Constructor
    Description
    ContentLengthNotAllowedException(String message)
    Create a new instance with the given message.
  • Method Summary

    Methods inherited from class Throwable

    addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • ContentLengthNotAllowedException

      public ContentLengthNotAllowedException(String message)
      Create a new instance with the given message.
      Parameters:
      message - The exception message.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.