public class CachingWebClientOptions extends WebClientOptions
| Modifier and Type | Field and Description |
|---|---|
static Set<HttpMethod> |
DEFAULT_CACHED_METHODS |
static Set<Integer> |
DEFAULT_CACHED_STATUS_CODES |
DEFAULT_EXPAND_OPTIONS, DEFAULT_FOLLOW_REDIRECTS, DEFAULT_USER_AGENT, DEFAULT_USER_AGENT_ENABLEDDEFAULT_ALPN_VERSIONS, DEFAULT_DECODER_INITIAL_BUFFER_SIZE, DEFAULT_DECOMPRESSION_SUPPORTED, DEFAULT_DEFAULT_HOST, DEFAULT_DEFAULT_PORT, DEFAULT_FORCE_SNI, DEFAULT_HTTP2_CLEAR_TEXT_UPGRADE, DEFAULT_HTTP2_CLEAR_TEXT_UPGRADE_WITH_PREFLIGHT_REQUEST, DEFAULT_HTTP2_CONNECTION_WINDOW_SIZE, DEFAULT_HTTP2_KEEP_ALIVE_TIMEOUT, DEFAULT_HTTP2_MAX_POOL_SIZE, DEFAULT_HTTP2_MULTIPLEXING_LIMIT, DEFAULT_KEEP_ALIVE, DEFAULT_KEEP_ALIVE_TIMEOUT, DEFAULT_MAX_CHUNK_SIZE, DEFAULT_MAX_HEADER_SIZE, DEFAULT_MAX_INITIAL_LINE_LENGTH, DEFAULT_MAX_POOL_SIZE, DEFAULT_MAX_REDIRECTS, DEFAULT_MAX_WAIT_QUEUE_SIZE, DEFAULT_MAX_WEBSOCKET_FRAME_SIZE, DEFAULT_MAX_WEBSOCKET_MESSAGE_SIZE, DEFAULT_MAX_WEBSOCKETS, DEFAULT_NAME, DEFAULT_PIPELINING, DEFAULT_PIPELINING_LIMIT, DEFAULT_POOL_CLEANER_PERIOD, DEFAULT_POOL_EVENT_LOOP_SIZE, DEFAULT_PROTOCOL_VERSION, DEFAULT_SEND_UNMASKED_FRAMES, DEFAULT_SHARED, DEFAULT_TRACING_POLICY, DEFAULT_TRY_USE_COMPRESSION, DEFAULT_TRY_USE_PER_FRAME_WEBSOCKET_COMPRESSION, DEFAULT_TRY_USE_PER_MESSAGE_WEBSOCKET_COMPRESSION, DEFAULT_VERIFY_HOST, DEFAULT_WEBSOCKET_ALLOW_CLIENT_NO_CONTEXT, DEFAULT_WEBSOCKET_CLOSING_TIMEOUT, DEFAULT_WEBSOCKET_COMPRESSION_LEVEL, DEFAULT_WEBSOCKET_REQUEST_SERVER_NO_CONTEXTDEFAULT_CONNECT_TIMEOUT, DEFAULT_METRICS_NAME, DEFAULT_TRUST_ALLDEFAULT_ENABLED_SECURE_TRANSPORT_PROTOCOLS, DEFAULT_IDLE_TIMEOUT, DEFAULT_IDLE_TIMEOUT_TIME_UNIT, DEFAULT_READ_IDLE_TIMEOUT, DEFAULT_SO_LINGER, DEFAULT_SSL, DEFAULT_SSL_ENGINE, DEFAULT_SSL_HANDSHAKE_TIMEOUT, DEFAULT_SSL_HANDSHAKE_TIMEOUT_TIME_UNIT, DEFAULT_TCP_CORK, DEFAULT_TCP_FAST_OPEN, DEFAULT_TCP_KEEAPLIVE_INTERVAL_SECONDS, DEFAULT_TCP_KEEP_ALIVE, DEFAULT_TCP_KEEPALIVE_COUNT, DEFAULT_TCP_KEEPALIVE_IDLE_SECONDS, DEFAULT_TCP_NO_DELAY, DEFAULT_TCP_QUICKACK, DEFAULT_TCP_USER_TIMEOUT, DEFAULT_USE_ALPN, DEFAULT_WRITE_IDLE_TIMEOUTDEFAULT_LOG_ACTIVITY_FORMAT, DEFAULT_LOG_ENABLED, DEFAULT_RECEIVE_BUFFER_SIZE, DEFAULT_REUSE_ADDRESS, DEFAULT_REUSE_PORT, DEFAULT_SEND_BUFFER_SIZE, DEFAULT_TRAFFIC_CLASS| Constructor and Description |
|---|
CachingWebClientOptions() |
CachingWebClientOptions(boolean enableVaryCaching) |
CachingWebClientOptions(JsonObject json) |
CachingWebClientOptions(WebClientOptions other) |
addNonProxyHost, getTemplateExpandOptions, getUserAgent, isFollowRedirects, isUserAgentEnabled, loadUserAgent, setMaxWebSockets, setName, setNonProxyHosts, setPoolEventLoopSize, setReadIdleTimeout, setShared, setTemplateExpandOptions, setTracingPolicy, setWebSocketClosingTimeout, setWriteIdleTimeoutgetAlpnVersions, getDecoderInitialBufferSize, getDefaultHost, getDefaultPort, getHttp2ConnectionWindowSize, getHttp2KeepAliveTimeout, getHttp2MaxPoolSize, getHttp2MultiplexingLimit, getInitialSettings, getKeepAliveTimeout, getMaxChunkSize, getMaxHeaderSize, getMaxInitialLineLength, getMaxPoolSize, getMaxRedirects, getMaxWaitQueueSize, getMaxWebSocketFrameSize, getMaxWebSocketMessageSize, getMaxWebSockets, getName, getPipeliningLimit, getPoolCleanerPeriod, getPoolEventLoopSize, getPoolOptions, getProtocolVersion, getTracingPolicy, getTryUsePerFrameWebSocketCompression, getTryUsePerMessageWebSocketCompression, getTryWebSocketDeflateFrameCompression, getWebSocketClosingTimeout, getWebSocketCompressionAllowClientNoContext, getWebSocketCompressionLevel, getWebSocketCompressionRequestServerNoContext, isDecompressionSupported, isForceSni, isHttp2ClearTextUpgrade, isHttp2ClearTextUpgradeWithPreflightRequest, isKeepAlive, isPipelining, isSendUnmaskedFrames, isShared, isTryUseCompression, isVerifyHost, removeEnabledCipherSuite, setActivityLogDataFormat, setHttp2ClearTextUpgradeWithPreflightRequest, setTcpUserTimeoutgetConnectTimeout, getLocalAddress, getMetricsName, getNonProxyHosts, getProxyOptions, isTrustAllgetCrlPaths, getCrlValues, getEnabledCipherSuites, getEnabledSecureTransportProtocols, getIdleTimeout, getIdleTimeoutUnit, getJdkSslEngineOptions, getKeyCertOptions, getKeyStoreOptions, getOpenSslEngineOptions, getPemKeyCertOptions, getPemTrustOptions, getPfxKeyCertOptions, getPfxTrustOptions, getReadIdleTimeout, getSoLinger, getSslEngineOptions, getSslHandshakeTimeout, getSslHandshakeTimeoutUnit, getSslOptions, getTcpKeepAliveCount, getTcpKeepAliveIdleSeconds, getTcpKeepAliveIntervalSeconds, getTcpUserTimeout, getTrustOptions, getTrustStoreOptions, getWriteIdleTimeout, isSsl, isTcpCork, isTcpFastOpen, isTcpKeepAlive, isTcpNoDelay, isTcpQuickAck, isUseAlpn, setTcpKeepAliveCount, setTcpKeepAliveIdleSeconds, setTcpKeepAliveIntervalSecondsgetActivityLogDataFormat, getLogActivity, getReceiveBufferSize, getSendBufferSize, getTrafficClass, isReuseAddress, isReusePortpublic static final Set<HttpMethod> DEFAULT_CACHED_METHODS
public CachingWebClientOptions()
public CachingWebClientOptions(boolean enableVaryCaching)
public CachingWebClientOptions(WebClientOptions other)
public CachingWebClientOptions(JsonObject json)
public JsonObject toJson()
toJson in class WebClientOptionspublic CachingWebClientOptions setEnableVaryCaching(boolean enabled)
Vary responses.enabled - true to enable caching varying responsespublic Set<Integer> getCachedStatusCodes()
public CachingWebClientOptions setCachedStatusCodes(Set<Integer> codes)
codes - the cacheable status code numberspublic CachingWebClientOptions addCachedStatusCode(Integer code)
code - the additional code numberpublic CachingWebClientOptions removeCachedStatusCode(Integer code)
code - the code number to removepublic Set<HttpMethod> getCachedMethods()
public CachingWebClientOptions setCachedMethods(Set<HttpMethod> methods)
methods - the HTTP methods to cachepublic CachingWebClientOptions addCachedMethod(HttpMethod method)
method - the method to addpublic CachingWebClientOptions removeCachedMethod(HttpMethod method)
method - the method to removepublic boolean isVaryCachingEnabled()
Vary header, false otherwisepublic CachingWebClientOptions setUserAgentEnabled(boolean userAgentEnabled)
WebClientOptionssetUserAgentEnabled in class WebClientOptionsuserAgentEnabled - true to send a user agent header, false otherwisepublic CachingWebClientOptions setUserAgent(String userAgent)
WebClientOptionssetUserAgent in class WebClientOptionsuserAgent - user agent header valuepublic CachingWebClientOptions setFollowRedirects(boolean followRedirects)
WebClientOptions30x redirections.setFollowRedirects in class WebClientOptionsfollowRedirects - true when a redirect is followedpublic CachingWebClientOptions setMaxRedirects(int maxRedirects)
setMaxRedirects in class WebClientOptionspublic CachingWebClientOptions setSendBufferSize(int sendBufferSize)
setSendBufferSize in class WebClientOptionspublic CachingWebClientOptions setReceiveBufferSize(int receiveBufferSize)
setReceiveBufferSize in class WebClientOptionspublic CachingWebClientOptions setReuseAddress(boolean reuseAddress)
setReuseAddress in class WebClientOptionspublic CachingWebClientOptions setTrafficClass(int trafficClass)
setTrafficClass in class WebClientOptionspublic CachingWebClientOptions setTcpNoDelay(boolean tcpNoDelay)
setTcpNoDelay in class WebClientOptionspublic CachingWebClientOptions setTcpKeepAlive(boolean tcpKeepAlive)
setTcpKeepAlive in class WebClientOptionspublic CachingWebClientOptions setSoLinger(int soLinger)
setSoLinger in class WebClientOptionspublic CachingWebClientOptions setIdleTimeout(int idleTimeout)
setIdleTimeout in class WebClientOptionspublic CachingWebClientOptions setIdleTimeoutUnit(TimeUnit idleTimeoutUnit)
setIdleTimeoutUnit in class WebClientOptionspublic CachingWebClientOptions setSsl(boolean ssl)
setSsl in class WebClientOptionspublic CachingWebClientOptions setKeyCertOptions(KeyCertOptions options)
setKeyCertOptions in class WebClientOptionspublic CachingWebClientOptions setKeyStoreOptions(JksOptions options)
setKeyStoreOptions in class WebClientOptionspublic CachingWebClientOptions setPfxKeyCertOptions(PfxOptions options)
setPfxKeyCertOptions in class WebClientOptionspublic CachingWebClientOptions setTrustOptions(TrustOptions options)
setTrustOptions in class WebClientOptionspublic CachingWebClientOptions setPemKeyCertOptions(PemKeyCertOptions options)
setPemKeyCertOptions in class WebClientOptionspublic CachingWebClientOptions setTrustStoreOptions(JksOptions options)
setTrustStoreOptions in class WebClientOptionspublic CachingWebClientOptions setPfxTrustOptions(PfxOptions options)
setPfxTrustOptions in class WebClientOptionspublic CachingWebClientOptions setPemTrustOptions(PemTrustOptions options)
setPemTrustOptions in class WebClientOptionspublic CachingWebClientOptions addEnabledCipherSuite(String suite)
addEnabledCipherSuite in class WebClientOptionspublic CachingWebClientOptions addCrlPath(String crlPath) throws NullPointerException
addCrlPath in class WebClientOptionsNullPointerExceptionpublic CachingWebClientOptions addCrlValue(Buffer crlValue) throws NullPointerException
addCrlValue in class WebClientOptionsNullPointerExceptionpublic CachingWebClientOptions setConnectTimeout(int connectTimeout)
setConnectTimeout in class WebClientOptionspublic CachingWebClientOptions setTrustAll(boolean trustAll)
setTrustAll in class WebClientOptionspublic CachingWebClientOptions setMaxPoolSize(int maxPoolSize)
setMaxPoolSize in class WebClientOptionspublic CachingWebClientOptions setHttp2MultiplexingLimit(int limit)
setHttp2MultiplexingLimit in class WebClientOptionspublic CachingWebClientOptions setHttp2MaxPoolSize(int max)
setHttp2MaxPoolSize in class WebClientOptionspublic CachingWebClientOptions setHttp2ConnectionWindowSize(int http2ConnectionWindowSize)
setHttp2ConnectionWindowSize in class WebClientOptionspublic CachingWebClientOptions setKeepAlive(boolean keepAlive)
setKeepAlive in class WebClientOptionspublic CachingWebClientOptions setPipelining(boolean pipelining)
setPipelining in class WebClientOptionspublic CachingWebClientOptions setPipeliningLimit(int limit)
setPipeliningLimit in class WebClientOptionspublic CachingWebClientOptions setVerifyHost(boolean verifyHost)
setVerifyHost in class WebClientOptions@Deprecated public CachingWebClientOptions setTryUseCompression(boolean tryUseCompression)
setTryUseCompression in class WebClientOptionspublic CachingWebClientOptions setDecompressionSupported(boolean tryUseCompression)
setDecompressionSupported in class WebClientOptionspublic CachingWebClientOptions setSendUnmaskedFrames(boolean sendUnmaskedFrames)
setSendUnmaskedFrames in class WebClientOptionspublic CachingWebClientOptions setMaxWebSocketFrameSize(int maxWebsocketFrameSize)
setMaxWebSocketFrameSize in class WebClientOptionspublic CachingWebClientOptions setDefaultHost(String defaultHost)
setDefaultHost in class WebClientOptionspublic CachingWebClientOptions setDefaultPort(int defaultPort)
setDefaultPort in class WebClientOptionspublic CachingWebClientOptions setMaxChunkSize(int maxChunkSize)
setMaxChunkSize in class WebClientOptionspublic CachingWebClientOptions setProtocolVersion(HttpVersion protocolVersion)
setProtocolVersion in class WebClientOptionspublic CachingWebClientOptions setMaxHeaderSize(int maxHeaderSize)
setMaxHeaderSize in class WebClientOptionspublic CachingWebClientOptions setMaxWaitQueueSize(int maxWaitQueueSize)
setMaxWaitQueueSize in class WebClientOptionspublic CachingWebClientOptions setUseAlpn(boolean useAlpn)
setUseAlpn in class WebClientOptionspublic CachingWebClientOptions setSslEngineOptions(SSLEngineOptions sslEngineOptions)
setSslEngineOptions in class WebClientOptionspublic CachingWebClientOptions setJdkSslEngineOptions(JdkSSLEngineOptions sslEngineOptions)
setJdkSslEngineOptions in class WebClientOptionspublic CachingWebClientOptions setOpenSslEngineOptions(OpenSSLEngineOptions sslEngineOptions)
setOpenSslEngineOptions in class WebClientOptionspublic CachingWebClientOptions setHttp2ClearTextUpgrade(boolean value)
setHttp2ClearTextUpgrade in class WebClientOptionspublic CachingWebClientOptions setAlpnVersions(List<HttpVersion> alpnVersions)
setAlpnVersions in class WebClientOptionspublic CachingWebClientOptions setMetricsName(String metricsName)
setMetricsName in class WebClientOptionspublic CachingWebClientOptions setProxyOptions(ProxyOptions proxyOptions)
setProxyOptions in class WebClientOptionspublic CachingWebClientOptions setLocalAddress(String localAddress)
setLocalAddress in class WebClientOptionspublic CachingWebClientOptions setLogActivity(boolean logEnabled)
setLogActivity in class WebClientOptionspublic CachingWebClientOptions addEnabledSecureTransportProtocol(String protocol)
addEnabledSecureTransportProtocol in class WebClientOptionspublic CachingWebClientOptions removeEnabledSecureTransportProtocol(String protocol)
removeEnabledSecureTransportProtocol in class WebClientOptionspublic CachingWebClientOptions setEnabledSecureTransportProtocols(Set<String> enabledSecureTransportProtocols)
setEnabledSecureTransportProtocols in class WebClientOptionspublic CachingWebClientOptions setReusePort(boolean reusePort)
setReusePort in class WebClientOptionspublic CachingWebClientOptions setTcpFastOpen(boolean tcpFastOpen)
setTcpFastOpen in class WebClientOptionspublic CachingWebClientOptions setTcpCork(boolean tcpCork)
setTcpCork in class WebClientOptionspublic CachingWebClientOptions setTcpQuickAck(boolean tcpQuickAck)
setTcpQuickAck in class WebClientOptionspublic CachingWebClientOptions setHttp2KeepAliveTimeout(int keepAliveTimeout)
setHttp2KeepAliveTimeout in class WebClientOptionspublic CachingWebClientOptions setForceSni(boolean forceSni)
setForceSni in class WebClientOptionspublic CachingWebClientOptions setDecoderInitialBufferSize(int decoderInitialBufferSize)
setDecoderInitialBufferSize in class WebClientOptionspublic CachingWebClientOptions setPoolCleanerPeriod(int poolCleanerPeriod)
setPoolCleanerPeriod in class WebClientOptionspublic CachingWebClientOptions setKeepAliveTimeout(int keepAliveTimeout)
setKeepAliveTimeout in class WebClientOptionspublic CachingWebClientOptions setMaxWebSocketMessageSize(int maxWebsocketMessageSize)
setMaxWebSocketMessageSize in class WebClientOptionspublic CachingWebClientOptions setMaxInitialLineLength(int maxInitialLineLength)
setMaxInitialLineLength in class WebClientOptionspublic CachingWebClientOptions setInitialSettings(Http2Settings settings)
setInitialSettings in class WebClientOptionspublic CachingWebClientOptions setSslHandshakeTimeout(long sslHandshakeTimeout)
setSslHandshakeTimeout in class WebClientOptionspublic CachingWebClientOptions setSslHandshakeTimeoutUnit(TimeUnit sslHandshakeTimeoutUnit)
setSslHandshakeTimeoutUnit in class WebClientOptionspublic CachingWebClientOptions setTryUsePerFrameWebSocketCompression(boolean offer)
setTryUsePerFrameWebSocketCompression in class WebClientOptionspublic CachingWebClientOptions setTryUsePerMessageWebSocketCompression(boolean offer)
setTryUsePerMessageWebSocketCompression in class WebClientOptionspublic CachingWebClientOptions setWebSocketCompressionLevel(int compressionLevel)
setWebSocketCompressionLevel in class WebClientOptionspublic CachingWebClientOptions setWebSocketCompressionAllowClientNoContext(boolean offer)
setWebSocketCompressionAllowClientNoContext in class WebClientOptionspublic CachingWebClientOptions setWebSocketCompressionRequestServerNoContext(boolean offer)
setWebSocketCompressionRequestServerNoContext in class WebClientOptionsCopyright © 2025 Eclipse. All rights reserved.