io.knotx.fragments.action.library.http.options.EndpointOptionsConverter Maven / Gradle / Ivy
package io.knotx.fragments.action.library.http.options;
import io.vertx.core.json.JsonObject;
import io.vertx.core.json.JsonArray;
import java.time.Instant;
import java.time.format.DateTimeFormatter;
/**
* Converter for {@link io.knotx.fragments.action.library.http.options.EndpointOptions}.
* NOTE: This class has been automatically generated from the {@link io.knotx.fragments.action.library.http.options.EndpointOptions} original class using Vert.x codegen.
*/
class EndpointOptionsConverter {
static void fromJson(Iterable> json, EndpointOptions obj) {
for (java.util.Map.Entry member : json) {
switch (member.getKey()) {
case "additionalHeaders":
if (member.getValue() instanceof JsonObject) {
obj.setAdditionalHeaders(((JsonObject)member.getValue()).copy());
}
break;
case "allowedRequestHeaders":
if (member.getValue() instanceof JsonArray) {
java.util.LinkedHashSet list = new java.util.LinkedHashSet<>();
((Iterable
© 2015 - 2024 Weber Informatics LLC | Privacy Policy