@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 java.lang.String |
PREFIX
Prefix for HTTP Client settings.
|
DEFAULT_EXCEPTION_ON_ERROR_STATUS, 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, getConnectTtl, getDefaultCharset, getEventLoopGroup, getHttpVersion, getLoggerName, getLogLevel, getMaxContentLength, getNumOfThreads, getProxyAddress, getProxyPassword, getProxySelector, getProxyType, getProxyUsername, getReadIdleTimeout, getReadTimeout, getShutdownTimeout, getSslConfiguration, getThreadFactory, isExceptionOnErrorStatus, isFollowRedirects, resolveProxy, setChannelOptions, setConnectTimeout, setConnectTtl, setDefaultCharset, setEventLoopGroup, setExceptionOnErrorStatus, setFollowRedirects, setHttpVersion, setLoggerName, setLogLevel, setMaxContentLength, setNumOfThreads, setProxyAddress, setProxyPassword, setProxySelector, setProxyType, setProxyUsername, setReadIdleTimeout, setReadTimeout, setShutdownTimeout, setSslConfiguration, setThreadFactory
public static final java.lang.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