Interface RestClientsConfig.RestClientConfig
- Enclosing interface:
- RestClientsConfig
-
Method Summary
Modifier and TypeMethodDescriptionalpn()If the Application-Layer Protocol Negotiation is enabled, the client will negotiate which protocol to use over the protocols exposed by the server.Iftrue, the stacktrace of the invocation of the REST Client method is captured.The size of the connection pool for this client.The time in ms for which a connection remains unused in the connection pool before being evicted and closed.Timeout specified in milliseconds to wait to connect to the remote endpoint.If set totrue, then this REST Client will not the default exception mapper which always throws an exception if HTTP response code >= 400.A boolean value used to determine whether the client should follow HTTP redirect responses.headers()The HTTP headers that should be applied to all requests of the rest client.The class name of the host name verifier.http2()If this is true then HTTP/2 will be enabled.If set to false disables the keep alive completely.keyStore()The key store location.The key store password.The type of the key store.logging()Logging configuration.The max HTTP chunk size (8096 bytes by default).The maximum number of redirection a request can follow.Multipart configuration.Mode in which the form data are encoded.name()Set the HTTP client name, used when the client is shared, otherwise ignored.Hosts to access without proxyThis property is only meant to be set by advanced configurations to override whatever value was set for the uri or url.Map where keys are fully-qualified provider classnames to include in the client, and values are their integer priorities.Optional<@WithConverter(io.quarkus.runtime.configuration.TrimmedStringConverter.class) String>A string value in the form of `: ` that specifies the HTTP proxy server hostname (or IP address) and port for requests of this client to use. Proxy password.Proxy username.Optional<org.eclipse.microprofile.rest.client.ext.QueryParamStyle>An enumerated type string value with possible values of "MULTI_PAIRS" (default), "COMMA_SEPARATED", or "ARRAY_PAIRS" that specifies the format in which multiple values for the same query parameter is used.Timeout specified in milliseconds to wait for a response from the remote endpoint.shared()Set to true to share the HTTP client between REST clients.The name of the TLS configuration to use.The trust store location.The trust store password.The type of the trust store.uri()The base URI to use for this service.io.smallrye.config.ConfigValueuriValue()Duplicate mapping ofuri()to keep a reference of the name used to retrieve theuri.url()The base URL to use for this service.io.smallrye.config.ConfigValueurlValue()Duplicate mapping ofurl()to keep a reference of the name used to retrieve theurl.Configure the HTTP user-agent header to use.Set whether hostname verification is enabled.
-
Method Details
-
multipart
RestClientsConfig.RestClientMultipartConfig multipart()Multipart configuration. -
url
The base URL to use for this service. This property or the `uri` property is considered required, unless the `baseUri` attribute is configured in the `@RegisterRestClient` annotation. -
urlValue
Duplicate mapping ofurl()to keep a reference of the name used to retrieve theurl. We need this to reload theurlconfiguration in case it contains an expression to${quarkus.http.port}, which is only set after we load the config. -
urlReload
-
uri
The base URI to use for this service. This property or the `url` property is considered required, unless the `baseUri` attribute is configured in the `@RegisterRestClient` annotation. -
uriValue
Duplicate mapping ofuri()to keep a reference of the name used to retrieve theuri. We need this to reload theuriconfiguration in case it contains an expression to${quarkus.http.port}, which is only set after we load the config. -
uriReload
-
overrideUri
This property is only meant to be set by advanced configurations to override whatever value was set for the uri or url. The override is done using the REST Client class name configuration syntax.This property is not applicable to the RESTEasy Client, only the Quarkus Rest client (formerly RESTEasy Reactive client).
-
providers
Map where keys are fully-qualified provider classnames to include in the client, and values are their integer priorities. The equivalent of the `@RegisterProvider` annotation. -
connectTimeout
Timeout specified in milliseconds to wait to connect to the remote endpoint. -
readTimeout
Timeout specified in milliseconds to wait for a response from the remote endpoint. -
followRedirects
A boolean value used to determine whether the client should follow HTTP redirect responses. -
multipartPostEncoderMode
Mode in which the form data are encoded. Possible values are `HTML5`, `RFC1738` and `RFC3986`. The modes are described in the Netty documentationBy default, Rest Client Reactive uses RFC1738.
This property is not applicable to the RESTEasy Client.
-
proxyAddress
Optional<@WithConverter(io.quarkus.runtime.configuration.TrimmedStringConverter.class) String> proxyAddress()A string value in the form of `: ` that specifies the HTTP proxy server hostname (or IP address) and port for requests of this client to use. Use `none` to disable proxy
-
proxyUser
Proxy username.This property is not applicable to the RESTEasy Client.
-
proxyPassword
Proxy password.This property is not applicable to the RESTEasy Client.
-
nonProxyHosts
Hosts to access without proxyThis property is not applicable to the RESTEasy Client.
-
queryParamStyle
Optional<org.eclipse.microprofile.rest.client.ext.QueryParamStyle> queryParamStyle()An enumerated type string value with possible values of "MULTI_PAIRS" (default), "COMMA_SEPARATED", or "ARRAY_PAIRS" that specifies the format in which multiple values for the same query parameter is used. -
verifyHost
Set whether hostname verification is enabled. Default is enabled. This setting should not be disabled in production as it makes the client vulnerable to MITM attacks. -
trustStore
The trust store location. Can point to either a classpath resource or a file. -
trustStorePassword
The trust store password. -
trustStoreType
The type of the trust store. Defaults to "JKS". -
keyStore
The key store location. Can point to either a classpath resource or a file. -
keyStorePassword
The key store password. -
keyStoreType
The type of the key store. Defaults to "JKS". -
hostnameVerifier
The class name of the host name verifier. The class must have a public no-argument constructor. -
tlsConfigurationName
The name of the TLS configuration to use.If not set and the default TLS configuration is configured (
quarkus.tls.*) then that will be used. If a name is configured, it uses the configuration fromquarkus.tls.<name>.*If a name is configured, but no TLS configuration is found with that name then an error will be thrown.If no TLS configuration is set, then the keys-tore, trust-store, etc. properties will be used.
This property is not applicable to the RESTEasy Client.
-
connectionTTL
The time in ms for which a connection remains unused in the connection pool before being evicted and closed. A timeout of0means there is no timeout. -
connectionPoolSize
The size of the connection pool for this client. -
keepAliveEnabled
If set to false disables the keep alive completely. -
maxRedirects
The maximum number of redirection a request can follow.This property is not applicable to the RESTEasy Client.
-
headers
The HTTP headers that should be applied to all requests of the rest client.This property is not applicable to the RESTEasy Client.
-
name
Set the HTTP client name, used when the client is shared, otherwise ignored.This property is not applicable to the RESTEasy Client.
-
userAgent
Configure the HTTP user-agent header to use.This property is not applicable to the RESTEasy Client.
-
http2
If this is true then HTTP/2 will be enabled. -
maxChunkSize
The max HTTP chunk size (8096 bytes by default).This property is not applicable to the RESTEasy Client.
-
alpn
If the Application-Layer Protocol Negotiation is enabled, the client will negotiate which protocol to use over the protocols exposed by the server. By default, it will try to use HTTP/2 first and if it's not enabled, it will use HTTP/1.1. When the property `http2` is enabled, this flag will be automatically enabled. -
captureStacktrace
Iftrue, the stacktrace of the invocation of the REST Client method is captured. This stacktrace will be used if the invocation throws an exception -
disableDefaultMapper
@WithDefault("${microprofile.rest.client.disable.default.mapper:false}") Boolean disableDefaultMapper()If set totrue, then this REST Client will not the default exception mapper which always throws an exception if HTTP response code >= 400. This property is not applicable to the RESTEasy Client. -
logging
Logging configuration.
-