Record Class HttpClientConfig
java.lang.Object
java.lang.Record
org.apache.tika.pipes.emitter.opensearch.HttpClientConfig
- Record Components:
verifySsl- Whentrue(the default), the HTTP client validates server certificates and hostnames using the JVM's default trust store. Setfalseto trust any certificate and skip the hostname check -- self-signed internal certs are the usual reason.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theauthSchemerecord component.intReturns the value of theconnectionTimeoutMillisrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.static HttpClientConfigpassword()Returns the value of thepasswordrecord component.Returns the value of theproxyHostrecord component.intReturns the value of theproxyPortrecord component.intReturns the value of thesocketTimeoutMillisrecord component.final StringtoString()Returns a string representation of this record class.userName()Returns the value of theuserNamerecord component.Returns the value of theverifySslrecord component.booleanBoxed so an absentverifySslis distinguishable from an explicitfalse.
-
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 aHttpClientConfigrecord class.- Parameters:
userName- the value for theuserNamerecord componentpassword- the value for thepasswordrecord componentauthScheme- the value for theauthSchemerecord componentconnectionTimeoutMillis- the value for theconnectionTimeoutMillisrecord componentsocketTimeoutMillis- the value for thesocketTimeoutMillisrecord componentproxyHost- the value for theproxyHostrecord componentproxyPort- the value for theproxyPortrecord componentverifySsl- the value for theverifySslrecord component
-
-
Method Details
-
load
- Throws:
IOException
-
verifySslOrDefault
public boolean verifySslOrDefault()Boxed so an absentverifySslis distinguishable from an explicitfalse. -
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
userName
Returns the value of theuserNamerecord component.- Returns:
- the value of the
userNamerecord component
-
password
Returns the value of thepasswordrecord component.- Returns:
- the value of the
passwordrecord component
-
authScheme
Returns the value of theauthSchemerecord component.- Returns:
- the value of the
authSchemerecord component
-
connectionTimeoutMillis
public int connectionTimeoutMillis()Returns the value of theconnectionTimeoutMillisrecord component.- Returns:
- the value of the
connectionTimeoutMillisrecord component
-
socketTimeoutMillis
public int socketTimeoutMillis()Returns the value of thesocketTimeoutMillisrecord component.- Returns:
- the value of the
socketTimeoutMillisrecord component
-
proxyHost
Returns the value of theproxyHostrecord component.- Returns:
- the value of the
proxyHostrecord component
-
proxyPort
public int proxyPort()Returns the value of theproxyPortrecord component.- Returns:
- the value of the
proxyPortrecord component
-
verifySsl
Returns the value of theverifySslrecord component.- Returns:
- the value of the
verifySslrecord component
-