Package com.linecorp.armeria.common
Class ContentTooLargeExceptionBuilder
java.lang.Object
com.linecorp.armeria.common.ContentTooLargeExceptionBuilder
Builds a new
ContentTooLargeException
.-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Returns a new instance ofContentTooLargeException
.contentLength(long contentLength)
Sets the actual content length in bytes, as specified in thecontent-length
header.contentLength(HttpHeaders headers)
Sets the actual content length in bytes, as specified in thecontent-length
header, from the specifiedHttpHeaders
.maxContentLength(long maxContentLength)
Sets the maximum allowed content length in bytes.transferred(long transferred)
Sets the number of bytes transferred so far.
-
Method Details
-
maxContentLength
Sets the maximum allowed content length in bytes. -
contentLength
Sets the actual content length in bytes, as specified in thecontent-length
header. -
contentLength
Sets the actual content length in bytes, as specified in thecontent-length
header, from the specifiedHttpHeaders
. If thecontent-length
header is missing or its value is not valid,-1
(unknown) will be set instead. -
transferred
Sets the number of bytes transferred so far. -
build
Returns a new instance ofContentTooLargeException
.
-