@Test public void testToJson() { WebClientOptions options = new WebClientOptions() .setDefaultPort(4848) .setMaxPoolSize(50) .setUserAgentEnabled(false); JsonObject json = options.toJson(); assertEquals(4848, (int) json.getInteger("defaultPort")); assertEquals(50, (int) json.getInteger("maxPoolSize")); assertEquals(false, json.getBoolean("userAgentEnabled")); }
public JsonObject toJson() { JsonObject json = super.toJson(); WebClientOptionsConverter.toJson(this, json); return json; }
WebClientOptions extends HttpClientOptions { public JsonObject toJson() { JsonObject json = super.toJson(); WebClientOptionsConverter.toJson(this, json); return json; } }
WebClientOptions extends HttpClientOptions { public JsonObject toJson() { JsonObject json = super.toJson(); WebClientOptionsConverter.toJson(this, json); return json; } WebClientOptions();  WebClientOptions(WebClientOptions other);  WebClientOptions(HttpClientOptions other);  WebClientOptions(JsonObject json); }
WebClientOptions extends HttpClientOptions { public JsonObject toJson() { JsonObject json = super.toJson(); WebClientOptionsConverter.toJson(this, json); return json; } WebClientOptions();  WebClientOptions(WebClientOptions other);  WebClientOptions(HttpClientOptions other);  WebClientOptions(JsonObject json); JsonObject toJson(); boolean isUserAgentEnabled(); WebClientOptions setUserAgentEnabled(boolean userAgentEnabled); String getUserAgent(); WebClientOptions setUserAgent(String userAgent); boolean isFollowRedirects(); WebClientOptions setFollowRedirects(boolean followRedirects); @Override WebClientOptions setMaxRedirects(int maxRedirects); @Override WebClientOptions setSendBufferSize(int sendBufferSize); @Override WebClientOptions setReceiveBufferSize(int receiveBufferSize); @Override WebClientOptions setReuseAddress(boolean reuseAddress); @Override WebClientOptions setTrafficClass(int trafficClass); @Override WebClientOptions setTcpNoDelay(boolean tcpNoDelay); @Override WebClientOptions setTcpKeepAlive(boolean tcpKeepAlive); @Override WebClientOptions setSoLinger(int soLinger); @Override WebClientOptions setIdleTimeout(int idleTimeout); @Override WebClientOptions setIdleTimeoutUnit(TimeUnit idleTimeoutUnit); @Override WebClientOptions setSsl(boolean ssl); @Override WebClientOptions setKeyCertOptions(KeyCertOptions options); @Override WebClientOptions setKeyStoreOptions(JksOptions options); @Override WebClientOptions setPfxKeyCertOptions(PfxOptions options); @Override WebClientOptions setTrustOptions(TrustOptions options); @Override WebClientOptions setPemKeyCertOptions(PemKeyCertOptions options); @Override WebClientOptions setTrustStoreOptions(JksOptions options); @Override WebClientOptions setPfxTrustOptions(PfxOptions options); @Override WebClientOptions setPemTrustOptions(PemTrustOptions options); @Override WebClientOptions addEnabledCipherSuite(String suite); @Override WebClientOptions addCrlPath(String crlPath); @Override WebClientOptions addCrlValue(Buffer crlValue); @Override WebClientOptions setConnectTimeout(int connectTimeout); @Override WebClientOptions setTrustAll(boolean trustAll); @Override WebClientOptions setMaxPoolSize(int maxPoolSize); @Override WebClientOptions setHttp2MultiplexingLimit(int limit); @Override WebClientOptions setHttp2MaxPoolSize(int max); @Override WebClientOptions setHttp2ConnectionWindowSize(int http2ConnectionWindowSize); @Override WebClientOptions setKeepAlive(boolean keepAlive); @Override WebClientOptions setPipelining(boolean pipelining); @Override WebClientOptions setPipeliningLimit(int limit); @Override WebClientOptions setVerifyHost(boolean verifyHost); @Override WebClientOptions setTryUseCompression(boolean tryUseCompression); @Override WebClientOptions setSendUnmaskedFrames(boolean sendUnmaskedFrames); @Override WebClientOptions setMaxWebSocketFrameSize(int maxWebsocketFrameSize); @Override WebClientOptions setDefaultHost(String defaultHost); @Override WebClientOptions setDefaultPort(int defaultPort); @Override WebClientOptions setMaxChunkSize(int maxChunkSize); @Override WebClientOptions setProtocolVersion(HttpVersion protocolVersion); @Override WebClientOptions setMaxHeaderSize(int maxHeaderSize); @Override WebClientOptions setMaxWaitQueueSize(int maxWaitQueueSize); @Override WebClientOptions setUseAlpn(boolean useAlpn); @Override WebClientOptions setSslEngineOptions(SSLEngineOptions sslEngineOptions); @Override WebClientOptions setJdkSslEngineOptions(JdkSSLEngineOptions sslEngineOptions); @Override WebClientOptions setOpenSslEngineOptions(OpenSSLEngineOptions sslEngineOptions); @Override WebClientOptions setHttp2ClearTextUpgrade(boolean value); @Override WebClientOptions setAlpnVersions(List<HttpVersion> alpnVersions); @Override WebClientOptions setMetricsName(String metricsName); @Override WebClientOptions setProxyOptions(ProxyOptions proxyOptions); @Override WebClientOptions setLocalAddress(String localAddress); @Override WebClientOptions setLogActivity(boolean logEnabled); @Override WebClientOptions addEnabledSecureTransportProtocol(String protocol); @Override WebClientOptions removeEnabledSecureTransportProtocol(String protocol); @Override WebClientOptions setEnabledSecureTransportProtocols(Set<String> enabledSecureTransportProtocols); @Override WebClientOptions setReusePort(boolean reusePort); @Override WebClientOptions setTcpFastOpen(boolean tcpFastOpen); @Override WebClientOptions setTcpCork(boolean tcpCork); @Override WebClientOptions setTcpQuickAck(boolean tcpQuickAck); @Override WebClientOptions setHttp2KeepAliveTimeout(int keepAliveTimeout); @Override WebClientOptions setForceSni(boolean forceSni); @Override WebClientOptions setDecoderInitialBufferSize(int decoderInitialBufferSize); @Override WebClientOptions setPoolCleanerPeriod(int poolCleanerPeriod); @Override WebClientOptions setKeepAliveTimeout(int keepAliveTimeout); @Override WebClientOptions setMaxWebSocketMessageSize(int maxWebsocketMessageSize); @Override WebClientOptions setMaxInitialLineLength(int maxInitialLineLength); @Override WebClientOptions setInitialSettings(Http2Settings settings); @Override WebClientOptions setSslHandshakeTimeout(long sslHandshakeTimeout); @Override WebClientOptions setSslHandshakeTimeoutUnit(TimeUnit sslHandshakeTimeoutUnit); @Override WebClientOptions setTryUsePerFrameWebSocketCompression(boolean offer); @Override WebClientOptions setTryUsePerMessageWebSocketCompression(boolean offer); @Override WebClientOptions setWebSocketCompressionLevel(int compressionLevel); @Override WebClientOptions setWebSocketCompressionAllowClientNoContext(boolean offer); @Override WebClientOptions setWebSocketCompressionRequestServerNoContext(boolean offer); static String loadUserAgent(); }
WebClientOptions extends HttpClientOptions { public JsonObject toJson() { JsonObject json = super.toJson(); WebClientOptionsConverter.toJson(this, json); return json; } WebClientOptions();  WebClientOptions(WebClientOptions other);  WebClientOptions(HttpClientOptions other);  WebClientOptions(JsonObject json); JsonObject toJson(); boolean isUserAgentEnabled(); WebClientOptions setUserAgentEnabled(boolean userAgentEnabled); String getUserAgent(); WebClientOptions setUserAgent(String userAgent); boolean isFollowRedirects(); WebClientOptions setFollowRedirects(boolean followRedirects); @Override WebClientOptions setMaxRedirects(int maxRedirects); @Override WebClientOptions setSendBufferSize(int sendBufferSize); @Override WebClientOptions setReceiveBufferSize(int receiveBufferSize); @Override WebClientOptions setReuseAddress(boolean reuseAddress); @Override WebClientOptions setTrafficClass(int trafficClass); @Override WebClientOptions setTcpNoDelay(boolean tcpNoDelay); @Override WebClientOptions setTcpKeepAlive(boolean tcpKeepAlive); @Override WebClientOptions setSoLinger(int soLinger); @Override WebClientOptions setIdleTimeout(int idleTimeout); @Override WebClientOptions setIdleTimeoutUnit(TimeUnit idleTimeoutUnit); @Override WebClientOptions setSsl(boolean ssl); @Override WebClientOptions setKeyCertOptions(KeyCertOptions options); @Override WebClientOptions setKeyStoreOptions(JksOptions options); @Override WebClientOptions setPfxKeyCertOptions(PfxOptions options); @Override WebClientOptions setTrustOptions(TrustOptions options); @Override WebClientOptions setPemKeyCertOptions(PemKeyCertOptions options); @Override WebClientOptions setTrustStoreOptions(JksOptions options); @Override WebClientOptions setPfxTrustOptions(PfxOptions options); @Override WebClientOptions setPemTrustOptions(PemTrustOptions options); @Override WebClientOptions addEnabledCipherSuite(String suite); @Override WebClientOptions addCrlPath(String crlPath); @Override WebClientOptions addCrlValue(Buffer crlValue); @Override WebClientOptions setConnectTimeout(int connectTimeout); @Override WebClientOptions setTrustAll(boolean trustAll); @Override WebClientOptions setMaxPoolSize(int maxPoolSize); @Override WebClientOptions setHttp2MultiplexingLimit(int limit); @Override WebClientOptions setHttp2MaxPoolSize(int max); @Override WebClientOptions setHttp2ConnectionWindowSize(int http2ConnectionWindowSize); @Override WebClientOptions setKeepAlive(boolean keepAlive); @Override WebClientOptions setPipelining(boolean pipelining); @Override WebClientOptions setPipeliningLimit(int limit); @Override WebClientOptions setVerifyHost(boolean verifyHost); @Override WebClientOptions setTryUseCompression(boolean tryUseCompression); @Override WebClientOptions setSendUnmaskedFrames(boolean sendUnmaskedFrames); @Override WebClientOptions setMaxWebSocketFrameSize(int maxWebsocketFrameSize); @Override WebClientOptions setDefaultHost(String defaultHost); @Override WebClientOptions setDefaultPort(int defaultPort); @Override WebClientOptions setMaxChunkSize(int maxChunkSize); @Override WebClientOptions setProtocolVersion(HttpVersion protocolVersion); @Override WebClientOptions setMaxHeaderSize(int maxHeaderSize); @Override WebClientOptions setMaxWaitQueueSize(int maxWaitQueueSize); @Override WebClientOptions setUseAlpn(boolean useAlpn); @Override WebClientOptions setSslEngineOptions(SSLEngineOptions sslEngineOptions); @Override WebClientOptions setJdkSslEngineOptions(JdkSSLEngineOptions sslEngineOptions); @Override WebClientOptions setOpenSslEngineOptions(OpenSSLEngineOptions sslEngineOptions); @Override WebClientOptions setHttp2ClearTextUpgrade(boolean value); @Override WebClientOptions setAlpnVersions(List<HttpVersion> alpnVersions); @Override WebClientOptions setMetricsName(String metricsName); @Override WebClientOptions setProxyOptions(ProxyOptions proxyOptions); @Override WebClientOptions setLocalAddress(String localAddress); @Override WebClientOptions setLogActivity(boolean logEnabled); @Override WebClientOptions addEnabledSecureTransportProtocol(String protocol); @Override WebClientOptions removeEnabledSecureTransportProtocol(String protocol); @Override WebClientOptions setEnabledSecureTransportProtocols(Set<String> enabledSecureTransportProtocols); @Override WebClientOptions setReusePort(boolean reusePort); @Override WebClientOptions setTcpFastOpen(boolean tcpFastOpen); @Override WebClientOptions setTcpCork(boolean tcpCork); @Override WebClientOptions setTcpQuickAck(boolean tcpQuickAck); @Override WebClientOptions setHttp2KeepAliveTimeout(int keepAliveTimeout); @Override WebClientOptions setForceSni(boolean forceSni); @Override WebClientOptions setDecoderInitialBufferSize(int decoderInitialBufferSize); @Override WebClientOptions setPoolCleanerPeriod(int poolCleanerPeriod); @Override WebClientOptions setKeepAliveTimeout(int keepAliveTimeout); @Override WebClientOptions setMaxWebSocketMessageSize(int maxWebsocketMessageSize); @Override WebClientOptions setMaxInitialLineLength(int maxInitialLineLength); @Override WebClientOptions setInitialSettings(Http2Settings settings); @Override WebClientOptions setSslHandshakeTimeout(long sslHandshakeTimeout); @Override WebClientOptions setSslHandshakeTimeoutUnit(TimeUnit sslHandshakeTimeoutUnit); @Override WebClientOptions setTryUsePerFrameWebSocketCompression(boolean offer); @Override WebClientOptions setTryUsePerMessageWebSocketCompression(boolean offer); @Override WebClientOptions setWebSocketCompressionLevel(int compressionLevel); @Override WebClientOptions setWebSocketCompressionAllowClientNoContext(boolean offer); @Override WebClientOptions setWebSocketCompressionRequestServerNoContext(boolean offer); static String loadUserAgent(); static final boolean DEFAULT_USER_AGENT_ENABLED; static final String DEFAULT_USER_AGENT; static final boolean DEFAULT_FOLLOW_REDIRECTS; }