io.vertx.core.http.HttpClientOptionsConverter Maven / Gradle / Ivy
package io.vertx.core.http;
import io.vertx.core.json.JsonObject;
import io.vertx.core.json.JsonArray;
import java.time.Instant;
import java.time.format.DateTimeFormatter;
/**
* Converter and mapper for {@link io.vertx.core.http.HttpClientOptions}.
* NOTE: This class has been automatically generated from the {@link io.vertx.core.http.HttpClientOptions} original class using Vert.x codegen.
*/
public class HttpClientOptionsConverter {
static void fromJson(Iterable> json, HttpClientOptions obj) {
for (java.util.Map.Entry member : json) {
switch (member.getKey()) {
case "http2MultiplexingLimit":
if (member.getValue() instanceof Number) {
obj.setHttp2MultiplexingLimit(((Number)member.getValue()).intValue());
}
break;
case "http2ConnectionWindowSize":
if (member.getValue() instanceof Number) {
obj.setHttp2ConnectionWindowSize(((Number)member.getValue()).intValue());
}
break;
case "http2KeepAliveTimeout":
if (member.getValue() instanceof Number) {
obj.setHttp2KeepAliveTimeout(((Number)member.getValue()).intValue());
}
break;
case "keepAlive":
if (member.getValue() instanceof Boolean) {
obj.setKeepAlive((Boolean)member.getValue());
}
break;
case "keepAliveTimeout":
if (member.getValue() instanceof Number) {
obj.setKeepAliveTimeout(((Number)member.getValue()).intValue());
}
break;
case "pipelining":
if (member.getValue() instanceof Boolean) {
obj.setPipelining((Boolean)member.getValue());
}
break;
case "pipeliningLimit":
if (member.getValue() instanceof Number) {
obj.setPipeliningLimit(((Number)member.getValue()).intValue());
}
break;
case "verifyHost":
if (member.getValue() instanceof Boolean) {
obj.setVerifyHost((Boolean)member.getValue());
}
break;
case "decompressionSupported":
if (member.getValue() instanceof Boolean) {
obj.setDecompressionSupported((Boolean)member.getValue());
}
break;
case "defaultHost":
if (member.getValue() instanceof String) {
obj.setDefaultHost((String)member.getValue());
}
break;
case "defaultPort":
if (member.getValue() instanceof Number) {
obj.setDefaultPort(((Number)member.getValue()).intValue());
}
break;
case "protocolVersion":
if (member.getValue() instanceof String) {
obj.setProtocolVersion(io.vertx.core.http.HttpVersion.valueOf((String)member.getValue()));
}
break;
case "maxChunkSize":
if (member.getValue() instanceof Number) {
obj.setMaxChunkSize(((Number)member.getValue()).intValue());
}
break;
case "maxInitialLineLength":
if (member.getValue() instanceof Number) {
obj.setMaxInitialLineLength(((Number)member.getValue()).intValue());
}
break;
case "maxHeaderSize":
if (member.getValue() instanceof Number) {
obj.setMaxHeaderSize(((Number)member.getValue()).intValue());
}
break;
case "initialSettings":
if (member.getValue() instanceof JsonObject) {
obj.setInitialSettings(new io.vertx.core.http.Http2Settings((io.vertx.core.json.JsonObject)member.getValue()));
}
break;
case "alpnVersions":
if (member.getValue() instanceof JsonArray) {
java.util.ArrayList list = new java.util.ArrayList<>();
((Iterable
© 2015 - 2025 Weber Informatics LLC | Privacy Policy