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 millisecondssocketTimeoutMillis- Socket read timeout in millisecondsproxyHost- HTTP proxy host (optional)proxyPort- HTTP proxy portverifySsl- Whentrue, the HTTP client validates server certificates and hostnames using the JVM's default trust store. Defaults tofalsefor 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 Summary
ConstructorsConstructorDescriptionHttpClientConfig(String userName, String password, String authScheme, int connectionTimeoutMillis, int socketTimeoutMillis, String proxyHost, int proxyPort, boolean verifySsl) 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.password()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.booleanReturns the value of theverifySslrecord component.
-
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
-
toString
-
hashCode
-
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 thecomparemethod from their corresponding wrapper classes. -
userName
-
password
-
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
-
proxyPort
-
verifySsl
-