Record Class HttpHandlingSettings

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

    Constructors
    Constructor
    Description
    HttpHandlingSettings(int maxContentLength, int maxChunkSize, int maxHeaderSize, int maxInitialLineLength, boolean resetCookies, boolean compression, int compressionLevel, boolean detailedErrorsEnabled)
    Creates an instance of a HttpHandlingSettings record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Returns the value of the compression record component.
    int
    Returns the value of the compressionLevel record component.
    boolean
    Returns the value of the detailedErrorsEnabled record component.
    final boolean
    Indicates whether some other object is "equal to" this one.
     
    final int
    Returns a hash code value for this object.
    int
    Returns the value of the maxChunkSize record component.
    int
    Returns the value of the maxContentLength record component.
    int
    Returns the value of the maxHeaderSize record component.
    int
    Returns the value of the maxInitialLineLength record component.
    boolean
    Returns the value of the resetCookies record component.
    final String
    Returns a string representation of this record class.

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • 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 a HttpHandlingSettings record class.
      Parameters:
      maxContentLength - the value for the maxContentLength record component
      maxChunkSize - the value for the maxChunkSize record component
      maxHeaderSize - the value for the maxHeaderSize record component
      maxInitialLineLength - the value for the maxInitialLineLength record component
      resetCookies - the value for the resetCookies record component
      compression - the value for the compression record component
      compressionLevel - the value for the compressionLevel record component
      detailedErrorsEnabled - the value for the detailedErrorsEnabled record component
  • Method Details

    • fromSettings

      public static HttpHandlingSettings fromSettings(Settings settings)
    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 '=='.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • maxContentLength

      public int maxContentLength()
      Returns the value of the maxContentLength record component.
      Returns:
      the value of the maxContentLength record component
    • maxChunkSize

      public int maxChunkSize()
      Returns the value of the maxChunkSize record component.
      Returns:
      the value of the maxChunkSize record component
    • maxHeaderSize

      public int maxHeaderSize()
      Returns the value of the maxHeaderSize record component.
      Returns:
      the value of the maxHeaderSize record component
    • maxInitialLineLength

      public int maxInitialLineLength()
      Returns the value of the maxInitialLineLength record component.
      Returns:
      the value of the maxInitialLineLength record component
    • resetCookies

      public boolean resetCookies()
      Returns the value of the resetCookies record component.
      Returns:
      the value of the resetCookies record component
    • compression

      public boolean compression()
      Returns the value of the compression record component.
      Returns:
      the value of the compression record component
    • compressionLevel

      public int compressionLevel()
      Returns the value of the compressionLevel record component.
      Returns:
      the value of the compressionLevel record component
    • detailedErrorsEnabled

      public boolean detailedErrorsEnabled()
      Returns the value of the detailedErrorsEnabled record component.
      Returns:
      the value of the detailedErrorsEnabled record component