@ConfigurationProperties(value="micronaut.http.client") @Primary public class DefaultHttpClientConfiguration extends HttpClientConfiguration
Modifier and Type | Class and Description |
---|---|
static class |
DefaultHttpClientConfiguration.DefaultConnectionPoolConfiguration
The default connection pool configuration.
|
HttpClientConfiguration.ConnectionPoolConfiguration
Modifier and Type | Field and Description |
---|---|
static String |
PREFIX
Prefix for HTTP Client settings.
|
DEFAULT_FOLLOW_REDIRECTS, DEFAULT_MAX_CONTENT_LENGTH, DEFAULT_READ_IDLE_TIMEOUT_MINUTES, DEFAULT_READ_TIMEOUT_SECONDS, DEFAULT_SHUTDOWN_TIMEOUT_MILLISECONDS
Constructor and Description |
---|
DefaultHttpClientConfiguration()
Default constructor.
|
DefaultHttpClientConfiguration(DefaultHttpClientConfiguration.DefaultConnectionPoolConfiguration connectionPoolConfiguration,
ApplicationConfiguration applicationConfiguration) |
Modifier and Type | Method and Description |
---|---|
HttpClientConfiguration.ConnectionPoolConfiguration |
getConnectionPoolConfiguration()
Obtains the connection pool configuration.
|
void |
setClientSslConfiguration(ClientSslConfiguration sslConfiguration)
Uses the default SSL configuration.
|
getChannelOptions, getConnectTimeout, getDefaultCharset, getLoggerName, getMaxContentLength, getNumOfThreads, getProxyAddress, getProxyPassword, getProxySelector, getProxyType, getProxyUsername, getReadIdleTimeout, getReadTimeout, getShutdownTimeout, getSslConfiguration, getThreadFactory, isFollowRedirects, resolveProxy, setChannelOptions, setConnectTimeout, setDefaultCharset, setFollowRedirects, setLoggerName, setMaxContentLength, setNumOfThreads, setProxyAddress, setProxyPassword, setProxySelector, setProxyType, setProxyUsername, setReadIdleTimeout, setReadTimeout, setShutdownTimeout, setSslConfiguration, setThreadFactory
public static final String PREFIX
public DefaultHttpClientConfiguration()
@Inject public DefaultHttpClientConfiguration(DefaultHttpClientConfiguration.DefaultConnectionPoolConfiguration connectionPoolConfiguration, ApplicationConfiguration applicationConfiguration)
connectionPoolConfiguration
- The connection pool configurationapplicationConfiguration
- The application configurationpublic HttpClientConfiguration.ConnectionPoolConfiguration getConnectionPoolConfiguration()
HttpClientConfiguration
getConnectionPoolConfiguration
in class HttpClientConfiguration
@Inject public void setClientSslConfiguration(@Nullable ClientSslConfiguration sslConfiguration)
sslConfiguration
- The SSL configuration