Record Class HttpClientConfig

java.lang.Object
java.lang.Record
org.apache.tika.pipes.emitter.opensearch.HttpClientConfig

public record HttpClientConfig(String userName, String password, String authScheme, int connectionTimeoutMillis, int socketTimeoutMillis, String proxyHost, int proxyPort) extends Record
  • Constructor Details

    • HttpClientConfig

      public HttpClientConfig(String userName, String password, String authScheme, int connectionTimeoutMillis, int socketTimeoutMillis, String proxyHost, int proxyPort)
      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
  • Method Details

    • load

      public static HttpClientConfig load(String json) throws IOException
      Throws:
      IOException
    • 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