java.lang.Object
java.lang.Record
org.elasticsearch.http.HttpHandlingSettings
public record HttpHandlingSettings(int maxContentLength, int maxChunkSize, int maxHeaderSize, int maxInitialLineLength, boolean resetCookies, boolean compression, int compressionLevel, boolean detailedErrorsEnabled)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionHttpHandlingSettings
(int maxContentLength, int maxChunkSize, int maxHeaderSize, int maxInitialLineLength, boolean resetCookies, boolean compression, int compressionLevel, boolean detailedErrorsEnabled) Creates an instance of aHttpHandlingSettings
record class. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Returns the value of thecompression
record component.int
Returns the value of thecompressionLevel
record component.boolean
Returns the value of thedetailedErrorsEnabled
record component.final boolean
Indicates whether some other object is "equal to" this one.static HttpHandlingSettings
fromSettings
(Settings settings) final int
hashCode()
Returns a hash code value for this object.int
Returns the value of themaxChunkSize
record component.int
Returns the value of themaxContentLength
record component.int
Returns the value of themaxHeaderSize
record component.int
Returns the value of themaxInitialLineLength
record component.boolean
Returns the value of theresetCookies
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
HttpHandlingSettings
public HttpHandlingSettings(int maxContentLength, int maxChunkSize, int maxHeaderSize, int maxInitialLineLength, boolean resetCookies, boolean compression, int compressionLevel, boolean detailedErrorsEnabled) Creates an instance of aHttpHandlingSettings
record class.- Parameters:
maxContentLength
- the value for themaxContentLength
record componentmaxChunkSize
- the value for themaxChunkSize
record componentmaxHeaderSize
- the value for themaxHeaderSize
record componentmaxInitialLineLength
- the value for themaxInitialLineLength
record componentresetCookies
- the value for theresetCookies
record componentcompression
- the value for thecompression
record componentcompressionLevel
- the value for thecompressionLevel
record componentdetailedErrorsEnabled
- the value for thedetailedErrorsEnabled
record component
-
-
Method Details
-
fromSettings
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared with '=='. -
maxContentLength
public int maxContentLength()Returns the value of themaxContentLength
record component.- Returns:
- the value of the
maxContentLength
record component
-
maxChunkSize
public int maxChunkSize()Returns the value of themaxChunkSize
record component.- Returns:
- the value of the
maxChunkSize
record component
-
maxHeaderSize
public int maxHeaderSize()Returns the value of themaxHeaderSize
record component.- Returns:
- the value of the
maxHeaderSize
record component
-
maxInitialLineLength
public int maxInitialLineLength()Returns the value of themaxInitialLineLength
record component.- Returns:
- the value of the
maxInitialLineLength
record component
-
resetCookies
public boolean resetCookies()Returns the value of theresetCookies
record component.- Returns:
- the value of the
resetCookies
record component
-
compression
public boolean compression()Returns the value of thecompression
record component.- Returns:
- the value of the
compression
record component
-
compressionLevel
public int compressionLevel()Returns the value of thecompressionLevel
record component.- Returns:
- the value of the
compressionLevel
record component
-
detailedErrorsEnabled
public boolean detailedErrorsEnabled()Returns the value of thedetailedErrorsEnabled
record component.- Returns:
- the value of the
detailedErrorsEnabled
record component
-