io.vertx.core.http.WebSocketConnectOptionsConverter 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.WebSocketConnectOptions}.
* NOTE: This class has been automatically generated from the {@link io.vertx.core.http.WebSocketConnectOptions} original class using Vert.x codegen.
*/
public class WebSocketConnectOptionsConverter {
static void fromJson(Iterable> json, WebSocketConnectOptions obj) {
for (java.util.Map.Entry member : json) {
switch (member.getKey()) {
case "version":
if (member.getValue() instanceof String) {
obj.setVersion(io.vertx.core.http.WebSocketVersion.valueOf((String)member.getValue()));
}
break;
case "subProtocols":
if (member.getValue() instanceof JsonArray) {
java.util.ArrayList list = new java.util.ArrayList<>();
((Iterable
© 2015 - 2025 Weber Informatics LLC | Privacy Policy