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 aHttpHandlingSettingsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the value of thecompressionrecord component.intReturns the value of thecompressionLevelrecord component.booleanReturns the value of thedetailedErrorsEnabledrecord component.final booleanIndicates whether some other object is "equal to" this one.static HttpHandlingSettingsfromSettings(Settings settings) final inthashCode()Returns a hash code value for this object.intReturns the value of themaxChunkSizerecord component.intReturns the value of themaxContentLengthrecord component.intReturns the value of themaxHeaderSizerecord component.intReturns the value of themaxInitialLineLengthrecord component.booleanReturns the value of theresetCookiesrecord component.final StringtoString()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 aHttpHandlingSettingsrecord class.- Parameters:
maxContentLength- the value for themaxContentLengthrecord componentmaxChunkSize- the value for themaxChunkSizerecord componentmaxHeaderSize- the value for themaxHeaderSizerecord componentmaxInitialLineLength- the value for themaxInitialLineLengthrecord componentresetCookies- the value for theresetCookiesrecord componentcompression- the value for thecompressionrecord componentcompressionLevel- the value for thecompressionLevelrecord componentdetailedErrorsEnabled- the value for thedetailedErrorsEnabledrecord 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 themaxContentLengthrecord component.- Returns:
- the value of the
maxContentLengthrecord component
-
maxChunkSize
public int maxChunkSize()Returns the value of themaxChunkSizerecord component.- Returns:
- the value of the
maxChunkSizerecord component
-
maxHeaderSize
public int maxHeaderSize()Returns the value of themaxHeaderSizerecord component.- Returns:
- the value of the
maxHeaderSizerecord component
-
maxInitialLineLength
public int maxInitialLineLength()Returns the value of themaxInitialLineLengthrecord component.- Returns:
- the value of the
maxInitialLineLengthrecord component
-
resetCookies
public boolean resetCookies()Returns the value of theresetCookiesrecord component.- Returns:
- the value of the
resetCookiesrecord component
-
compression
public boolean compression()Returns the value of thecompressionrecord component.- Returns:
- the value of the
compressionrecord component
-
compressionLevel
public int compressionLevel()Returns the value of thecompressionLevelrecord component.- Returns:
- the value of the
compressionLevelrecord component
-
detailedErrorsEnabled
public boolean detailedErrorsEnabled()Returns the value of thedetailedErrorsEnabledrecord component.- Returns:
- the value of the
detailedErrorsEnabledrecord component
-