io.vertx.core.net.ServerSSLOptionsConverter Maven / Gradle / Ivy
package io.vertx.core.net;
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.net.ServerSSLOptions}.
* NOTE: This class has been automatically generated from the {@link io.vertx.core.net.ServerSSLOptions} original class using Vert.x codegen.
*/
public class ServerSSLOptionsConverter {
static void fromJson(Iterable> json, ServerSSLOptions obj) {
for (java.util.Map.Entry member : json) {
switch (member.getKey()) {
case "clientAuth":
if (member.getValue() instanceof String) {
obj.setClientAuth(io.vertx.core.http.ClientAuth.valueOf((String)member.getValue()));
}
break;
case "sni":
if (member.getValue() instanceof Boolean) {
obj.setSni((Boolean)member.getValue());
}
break;
}
}
}
static void toJson(ServerSSLOptions obj, JsonObject json) {
toJson(obj, json.getMap());
}
static void toJson(ServerSSLOptions obj, java.util.Map json) {
if (obj.getClientAuth() != null) {
json.put("clientAuth", obj.getClientAuth().name());
}
json.put("sni", obj.isSni());
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy