Record Class HttpClientConfig
java.lang.Object
java.lang.Record
org.apache.tika.pipes.emitter.opensearch.HttpClientConfig
-
Constructor Summary
ConstructorsConstructorDescriptionHttpClientConfig(String userName, String password, String authScheme, int connectionTimeoutMillis, int socketTimeoutMillis, String proxyHost, int proxyPort) Creates an instance of aHttpClientConfigrecord class. -
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.
-
Constructor Details
-
HttpClientConfig
public HttpClientConfig(String userName, String password, String authScheme, int connectionTimeoutMillis, int socketTimeoutMillis, String proxyHost, int proxyPort) 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 component
-
-
Method Details
-
load
- Throws:
IOException
-
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
-