Class HttpServerOptionsUtils
java.lang.Object
io.quarkus.vertx.http.runtime.options.HttpServerOptionsUtils
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intWhen the http port is set to 0, replace it by this value to let Vert.x choose a random portstatic final intWhen the https port is set to 0, replace it by this value to let Vert.x choose a random portstatic final intWhen the management port is set to 0, replace it by this value to let Vert.x choose a random port -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidapplyCommonOptions(io.vertx.core.http.HttpServerOptions httpServerOptions, VertxHttpBuildTimeConfig httpBuildTimeConfig, VertxHttpConfig httpConfig, List<String> websocketSubProtocols) static voidapplyCommonOptionsForManagementInterface(io.vertx.core.http.HttpServerOptions options, ManagementInterfaceBuildTimeConfig managementBuildTimeConfig, ManagementConfig managementConfig, List<String> websocketSubProtocols) static voidapplyTlsConfigurationToHttpServerOptions(TlsConfiguration bucket, io.vertx.core.http.HttpServerOptions serverOptions) static io.vertx.core.http.HttpServerOptionscreateSslOptions(VertxHttpBuildTimeConfig httpBuildTimeConfig, VertxHttpConfig httpConfig, LaunchMode launchMode, List<String> websocketSubProtocols, TlsConfigurationRegistry registry) Get anHttpServerOptionsfor this server configuration, or null if SSL should not be enabledstatic io.vertx.core.http.HttpServerOptionscreateSslOptionsForManagementInterface(ManagementInterfaceBuildTimeConfig managementBuildTimeConfig, ManagementConfig managementConfig, LaunchMode launchMode, List<String> websocketSubProtocols, TlsConfigurationRegistry registry) Get anHttpServerOptionsfor this server configuration, or null if SSL should not be enabledgetCredential(Optional<String> password, Map<String, String> credentials, Optional<String> passwordKey) (package private) static byte[]getFileContent(Path path) getInsecureRequestStrategy(VertxHttpBuildTimeConfig httpBuildTimeConfig, Optional<VertxHttpConfig.InsecureRequests> requests) (package private) static <T> Optional<T>
-
Field Details
-
RANDOM_PORT_MAIN_HTTP
public static final int RANDOM_PORT_MAIN_HTTPWhen the http port is set to 0, replace it by this value to let Vert.x choose a random port- See Also:
-
RANDOM_PORT_MAIN_TLS
public static final int RANDOM_PORT_MAIN_TLSWhen the https port is set to 0, replace it by this value to let Vert.x choose a random port- See Also:
-
RANDOM_PORT_MANAGEMENT
public static final int RANDOM_PORT_MANAGEMENTWhen the management port is set to 0, replace it by this value to let Vert.x choose a random port- See Also:
-
-
Constructor Details
-
HttpServerOptionsUtils
public HttpServerOptionsUtils()
-
-
Method Details
-
createSslOptions
public static io.vertx.core.http.HttpServerOptions createSslOptions(VertxHttpBuildTimeConfig httpBuildTimeConfig, VertxHttpConfig httpConfig, LaunchMode launchMode, List<String> websocketSubProtocols, TlsConfigurationRegistry registry) throws IOException Get anHttpServerOptionsfor this server configuration, or null if SSL should not be enabled- Throws:
IOException
-
createSslOptionsForManagementInterface
public static io.vertx.core.http.HttpServerOptions createSslOptionsForManagementInterface(ManagementInterfaceBuildTimeConfig managementBuildTimeConfig, ManagementConfig managementConfig, LaunchMode launchMode, List<String> websocketSubProtocols, TlsConfigurationRegistry registry) throws IOException Get anHttpServerOptionsfor this server configuration, or null if SSL should not be enabled- Throws:
IOException
-
applyTlsConfigurationToHttpServerOptions
public static void applyTlsConfigurationToHttpServerOptions(TlsConfiguration bucket, io.vertx.core.http.HttpServerOptions serverOptions) -
getCredential
-
applyCommonOptions
public static void applyCommonOptions(io.vertx.core.http.HttpServerOptions httpServerOptions, VertxHttpBuildTimeConfig httpBuildTimeConfig, VertxHttpConfig httpConfig, List<String> websocketSubProtocols) -
applyCommonOptionsForManagementInterface
public static void applyCommonOptionsForManagementInterface(io.vertx.core.http.HttpServerOptions options, ManagementInterfaceBuildTimeConfig managementBuildTimeConfig, ManagementConfig managementConfig, List<String> websocketSubProtocols) -
getFileContent
- Throws:
IOException
-
getInsecureRequestStrategy
public static VertxHttpConfig.InsecureRequests getInsecureRequestStrategy(VertxHttpBuildTimeConfig httpBuildTimeConfig, Optional<VertxHttpConfig.InsecureRequests> requests) -
or
-