Record Class HttpClientConfig

java.lang.Object
java.lang.Record
org.apache.tika.pipes.emitter.es.HttpClientConfig
Record Components:
userName - Username for basic authentication (optional)
password - Password for basic authentication (optional)
authScheme - Auth scheme passed to HttpClientFactory, e.g. "basic" or "ntlm"
connectionTimeoutMillis - Connect timeout in milliseconds
socketTimeoutMillis - Socket read timeout in milliseconds
proxyHost - HTTP proxy host (optional)
proxyPort - HTTP proxy port
verifySsl - When true, the HTTP client validates server certificates and hostnames using the JVM's default trust store. Defaults to false for backward compatibility (trust-all / no hostname check).

public record HttpClientConfig(String userName, String password, String authScheme, int connectionTimeoutMillis, int socketTimeoutMillis, String proxyHost, int proxyPort, boolean verifySsl) extends Record
HTTP client settings for the ES emitter and reporter. Field names and semantics are intentionally aligned with the OpenSearch emitter's HttpClientConfig for configuration consistency.
  • Constructor Details

    • HttpClientConfig

      public HttpClientConfig(String userName, String password, String authScheme, int connectionTimeoutMillis, int socketTimeoutMillis, String proxyHost, int proxyPort, boolean verifySsl)
      Creates an instance of a HttpClientConfig record class.
      Parameters:
      userName - the value for the userName record component
      password - the value for the password record component
      authScheme - the value for the authScheme record component
      connectionTimeoutMillis - the value for the connectionTimeoutMillis record component
      socketTimeoutMillis - the value for the socketTimeoutMillis record component
      proxyHost - the value for the proxyHost record component
      proxyPort - the value for the proxyPort record component
      verifySsl - the value for the verifySsl record component
  • Method Details

    • 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. Reference components are compared with Objects::equals(Object,Object); primitive components 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.
    • userName

      public String userName()
      Returns the value of the userName record component.
      Returns:
      the value of the userName record component
    • password

      public String password()
      Returns the value of the password record component.
      Returns:
      the value of the password record component
    • authScheme

      public String authScheme()
      Returns the value of the authScheme record component.
      Returns:
      the value of the authScheme record component
    • connectionTimeoutMillis

      public int connectionTimeoutMillis()
      Returns the value of the connectionTimeoutMillis record component.
      Returns:
      the value of the connectionTimeoutMillis record component
    • socketTimeoutMillis

      public int socketTimeoutMillis()
      Returns the value of the socketTimeoutMillis record component.
      Returns:
      the value of the socketTimeoutMillis record component
    • proxyHost

      public String proxyHost()
      Returns the value of the proxyHost record component.
      Returns:
      the value of the proxyHost record component
    • proxyPort

      public int proxyPort()
      Returns the value of the proxyPort record component.
      Returns:
      the value of the proxyPort record component
    • verifySsl

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