@Override public String toString() { return toJson().encode(); }
static void toJson(HttpServerOptions obj, java.util.Map<String, Object> json) { json.put("acceptUnmaskedFrames", obj.isAcceptUnmaskedFrames()); if (obj.getAlpnVersions() != null) { JsonArray array = new JsonArray(); obj.getAlpnVersions().forEach(item -> array.add(item.name())); json.put("alpnVersions", array); } json.put("compressionLevel", obj.getCompressionLevel()); json.put("compressionSupported", obj.isCompressionSupported()); json.put("decoderInitialBufferSize", obj.getDecoderInitialBufferSize()); json.put("decompressionSupported", obj.isDecompressionSupported()); json.put("handle100ContinueAutomatically", obj.isHandle100ContinueAutomatically()); json.put("http2ConnectionWindowSize", obj.getHttp2ConnectionWindowSize()); if (obj.getInitialSettings() != null) { json.put("initialSettings", obj.getInitialSettings().toJson()); } json.put("maxChunkSize", obj.getMaxChunkSize()); json.put("maxHeaderSize", obj.getMaxHeaderSize()); json.put("maxInitialLineLength", obj.getMaxInitialLineLength()); json.put("maxWebsocketFrameSize", obj.getMaxWebsocketFrameSize()); json.put("maxWebsocketMessageSize", obj.getMaxWebsocketMessageSize()); json.put("websocketAllowServerNoContext", obj.getWebsocketAllowServerNoContext()); json.put("websocketPreferredClientNoContext", obj.getWebsocketPreferredClientNoContext()); if (obj.getWebsocketSubProtocols() != null) { json.put("websocketSubProtocols", obj.getWebsocketSubProtocols()); } } }
json.put("http2MultiplexingLimit", obj.getHttp2MultiplexingLimit()); if (obj.getInitialSettings() != null) { json.put("initialSettings", obj.getInitialSettings().toJson());
@Override public String toString() { return toJson().encode(); }
static void toJson(HttpServerOptions obj, java.util.Map<String, Object> json) { json.put("acceptUnmaskedFrames", obj.isAcceptUnmaskedFrames()); if (obj.getAlpnVersions() != null) { JsonArray array = new JsonArray(); obj.getAlpnVersions().forEach(item -> array.add(item.name())); json.put("alpnVersions", array); } json.put("compressionLevel", obj.getCompressionLevel()); json.put("compressionSupported", obj.isCompressionSupported()); json.put("decoderInitialBufferSize", obj.getDecoderInitialBufferSize()); json.put("decompressionSupported", obj.isDecompressionSupported()); json.put("handle100ContinueAutomatically", obj.isHandle100ContinueAutomatically()); json.put("http2ConnectionWindowSize", obj.getHttp2ConnectionWindowSize()); if (obj.getInitialSettings() != null) { json.put("initialSettings", obj.getInitialSettings().toJson()); } json.put("maxChunkSize", obj.getMaxChunkSize()); json.put("maxHeaderSize", obj.getMaxHeaderSize()); json.put("maxInitialLineLength", obj.getMaxInitialLineLength()); json.put("maxWebsocketFrameSize", obj.getMaxWebsocketFrameSize()); json.put("maxWebsocketMessageSize", obj.getMaxWebsocketMessageSize()); json.put("websocketAllowServerNoContext", obj.getWebsocketAllowServerNoContext()); json.put("websocketPreferredClientNoContext", obj.getWebsocketPreferredClientNoContext()); if (obj.getWebsocketSubProtocols() != null) { json.put("websocketSubProtocols", obj.getWebsocketSubProtocols()); } } }
json.put("http2MultiplexingLimit", obj.getHttp2MultiplexingLimit()); if (obj.getInitialSettings() != null) { json.put("initialSettings", obj.getInitialSettings().toJson());
Http2Settings s1 = new Http2Settings().setHeaderTableSize(1024); Http2Settings s2 = new Http2Settings().setHeaderTableSize(1024); Http2Settings s3 = new Http2Settings(s1.toJson()); Http2Settings s4 = new Http2Settings().setHeaderTableSize(2048);
public static io.vertx.core.http.HttpConnection remoteSettingsHandler(io.vertx.core.http.HttpConnection j_receiver, io.vertx.core.Handler<java.util.Map<String, Object>> handler) { io.vertx.core.impl.ConversionHelper.fromObject(j_receiver.remoteSettingsHandler(handler != null ? event -> handler.handle(event != null ? io.vertx.core.impl.ConversionHelper.fromJsonObject(event.toJson()) : null) : null)); return j_receiver; } }
public static java.util.Map<String, Object> settings(io.vertx.core.http.HttpConnection j_receiver) { return j_receiver.settings() != null ? io.vertx.core.impl.ConversionHelper.fromJsonObject(j_receiver.settings().toJson()) : null; } public static io.vertx.core.http.HttpConnection updateSettings(io.vertx.core.http.HttpConnection j_receiver, java.util.Map<String, Object> settings) {
public static java.util.Map<String, Object> remoteSettings(io.vertx.core.http.HttpConnection j_receiver) { return j_receiver.remoteSettings() != null ? io.vertx.core.impl.ConversionHelper.fromJsonObject(j_receiver.remoteSettings().toJson()) : null; } public static io.vertx.core.http.HttpConnection remoteSettingsHandler(io.vertx.core.http.HttpConnection j_receiver, io.vertx.core.Handler<java.util.Map<String, Object>> handler) {
json.put("idleTimeout", obj.getIdleTimeout()); if (obj.getInitialSettings() != null) { json.put("initialSettings", obj.getInitialSettings().toJson());
Http2Settings s1 = new Http2Settings().setHeaderTableSize(1024); Http2Settings s2 = new Http2Settings().setHeaderTableSize(1024); Http2Settings s3 = new Http2Settings(s1.toJson()); Http2Settings s4 = new Http2Settings().setHeaderTableSize(2048);