Class UndertowBlueprint<C>
- java.lang.Object
-
- ch.raffael.meldioc.library.http.server.undertow.UndertowBlueprint<C>
-
@Acceptor public final class UndertowBlueprint<C> extends java.lang.ObjectAcceptor for the base Undertow configuration.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classUndertowBlueprint.EP<C>static classUndertowBlueprint.SecurityBuilder<C>
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringADDRESS_ALLstatic java.lang.StringADDRESS_LOCAL
-
Constructor Summary
Constructors Constructor Description UndertowBlueprint()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description UndertowBlueprint<C>addCompressionHandler()UndertowBlueprint<C>addDispatchHandler()UndertowBlueprint<C>addStandardErrorHandler()UndertowBlueprint<C>basicSecurity(io.undertow.security.idm.IdentityManager identityManager)UndertowBlueprint<C>basicSecurity(io.undertow.security.idm.IdentityManager identityManager, java.lang.String realm)UndertowBlueprint<C>clearHandlerChain()UndertowBlueprint<C>customMainHandler(java.util.function.Function<? super java.util.function.Function<? super io.undertow.server.HttpServerExchange,? extends C>,? extends io.undertow.server.HttpHandler> mainHandler)UndertowBlueprint<C>disableCompression()UndertowBlueprint<C>disableEarlyDispatch()UndertowBlueprint<C>disableStandardErrorHandler()UndertowBlueprint<C>dispatchAdvice(io.vavr.control.Option<? extends java.util.function.Supplier<? extends ch.raffael.meldioc.util.advice.AroundAdvice>> dispatchAdvice)UndertowBlueprint<C>dispatchAdvice(java.util.function.Supplier<? extends ch.raffael.meldioc.util.advice.AroundAdvice> dispatchAdvice)UndertowBlueprint<C>enableStackTraces()UndertowBlueprint<C>enableStackTraces(boolean enable)UndertowBlueprint<C>enableStackTraces(java.util.function.Predicate<? super io.undertow.server.HttpServerExchange> enable)UndertowBlueprint<C>enableStackTraces(java.util.function.Supplier<java.lang.Boolean> enable)UndertowBlueprint<C>handler(java.util.function.BiFunction<? super java.util.function.Function<? super io.undertow.server.HttpServerExchange,? extends C>,? super io.undertow.server.HttpHandler,? extends io.undertow.server.HttpHandler> handler)UndertowBlueprint<C>handler(java.util.function.Function<? super io.undertow.server.HttpHandler,? extends io.undertow.server.HttpHandler> handler)static <C> UndertowBlueprint.EP<C>holder()Deprecated, for removal: This API element is subject to removal in a future version.static <C> UndertowBlueprint.EP<C>holder(java.util.function.Supplier<? extends io.undertow.Undertow.Builder> undertowBuilderSupplier)UndertowBlueprint<C>http(java.lang.String address, int port)UndertowBlueprint<C>httpAll(int port)UndertowBlueprint<C>httpAllSecure(int port, javax.net.ssl.SSLContext sslContext)UndertowBlueprint<C>httpLocal(int port)UndertowBlueprint<C>httpLocalSecure(int port, javax.net.ssl.SSLContext sslContext)UndertowBlueprint<C>httpSecure(java.lang.String address, int port, javax.net.ssl.SSLContext sslContext)UndertowBlueprint<C>mainHandler(RoutingDefinition<? super C> routing)Deprecated, for removal: This API element is subject to removal in a future version.Userouting(Supplier)instead.UndertowBlueprint<C>mainHandler(java.util.function.Function<? super java.util.function.Function<? super io.undertow.server.HttpServerExchange,? extends C>,? extends io.undertow.server.HttpHandler> mainHandler)Deprecated, for removal: This API element is subject to removal in a future version.UsecustomMainHandler(Function)instead.UndertowBlueprint<C>postConstruct(java.util.function.Consumer<? super io.undertow.Undertow> consumer)UndertowBlueprint<C>postStart(java.util.function.Consumer<? super io.undertow.Undertow> consumer)UndertowBlueprint<C>prependHandler(java.util.function.BiFunction<? super java.util.function.Function<? super io.undertow.server.HttpServerExchange,? extends C>,? super io.undertow.server.HttpHandler,? extends io.undertow.server.HttpHandler> handler)UndertowBlueprint<C>prependHandler(java.util.function.Function<? super io.undertow.server.HttpHandler,? extends io.undertow.server.HttpHandler> handler)UndertowBlueprint<C>requestContextFactory(java.util.function.Function<? super io.undertow.server.HttpServerExchange,? extends C> factory)UndertowBlueprint<C>requestContextFactory(java.util.function.Supplier<? extends C> factory)UndertowBlueprint<C>routing(java.util.function.Supplier<? extends RoutingDefinition<? super C>> routing)UndertowBlueprint.SecurityBuilder<C>security(io.undertow.security.idm.IdentityManager identityManager)UndertowBlueprint<C>security(io.undertow.security.idm.IdentityManager identityManager, io.undertow.security.api.AuthenticationMechanism... mechanisms)UndertowBlueprint<C>security(io.undertow.security.idm.IdentityManager identityManager, java.lang.Iterable<? extends io.undertow.security.api.AuthenticationMechanism> mechanisms)UndertowBlueprint<C>suppressStackTraces()Deprecated, for removal: This API element is subject to removal in a future version.UndertowBlueprint<C>suppressStackTraces(boolean suppress)Deprecated, for removal: This API element is subject to removal in a future version.UndertowBlueprint<C>suppressStackTraces(java.util.function.Predicate<? super io.undertow.server.HttpServerExchange> suppress)Deprecated, for removal: This API element is subject to removal in a future version.UndertowBlueprint<C>suppressStackTraces(java.util.function.Supplier<java.lang.Boolean> suppress)Deprecated, for removal: This API element is subject to removal in a future version.
-
-
-
Field Detail
-
ADDRESS_ALL
public static final java.lang.String ADDRESS_ALL
- See Also:
- Constant Field Values
-
ADDRESS_LOCAL
public static final java.lang.String ADDRESS_LOCAL
- See Also:
- Constant Field Values
-
-
Method Detail
-
holder
@Deprecated(forRemoval=true) public static <C> UndertowBlueprint.EP<C> holder()
Deprecated, for removal: This API element is subject to removal in a future version.
-
holder
public static <C> UndertowBlueprint.EP<C> holder(java.util.function.Supplier<? extends io.undertow.Undertow.Builder> undertowBuilderSupplier)
-
httpAll
public UndertowBlueprint<C> httpAll(int port)
-
httpLocal
public UndertowBlueprint<C> httpLocal(int port)
-
http
public UndertowBlueprint<C> http(java.lang.String address, int port)
-
httpAllSecure
public UndertowBlueprint<C> httpAllSecure(int port, javax.net.ssl.SSLContext sslContext)
-
httpLocalSecure
public UndertowBlueprint<C> httpLocalSecure(int port, javax.net.ssl.SSLContext sslContext)
-
httpSecure
public UndertowBlueprint<C> httpSecure(java.lang.String address, int port, javax.net.ssl.SSLContext sslContext)
-
handler
public UndertowBlueprint<C> handler(java.util.function.BiFunction<? super java.util.function.Function<? super io.undertow.server.HttpServerExchange,? extends C>,? super io.undertow.server.HttpHandler,? extends io.undertow.server.HttpHandler> handler)
-
handler
public UndertowBlueprint<C> handler(java.util.function.Function<? super io.undertow.server.HttpHandler,? extends io.undertow.server.HttpHandler> handler)
-
prependHandler
public UndertowBlueprint<C> prependHandler(java.util.function.BiFunction<? super java.util.function.Function<? super io.undertow.server.HttpServerExchange,? extends C>,? super io.undertow.server.HttpHandler,? extends io.undertow.server.HttpHandler> handler)
-
prependHandler
public UndertowBlueprint<C> prependHandler(java.util.function.Function<? super io.undertow.server.HttpHandler,? extends io.undertow.server.HttpHandler> handler)
-
dispatchAdvice
public UndertowBlueprint<C> dispatchAdvice(java.util.function.Supplier<? extends ch.raffael.meldioc.util.advice.AroundAdvice> dispatchAdvice)
-
dispatchAdvice
public UndertowBlueprint<C> dispatchAdvice(io.vavr.control.Option<? extends java.util.function.Supplier<? extends ch.raffael.meldioc.util.advice.AroundAdvice>> dispatchAdvice)
-
security
public UndertowBlueprint.SecurityBuilder<C> security(io.undertow.security.idm.IdentityManager identityManager)
-
security
public UndertowBlueprint<C> security(io.undertow.security.idm.IdentityManager identityManager, io.undertow.security.api.AuthenticationMechanism... mechanisms)
-
security
public UndertowBlueprint<C> security(io.undertow.security.idm.IdentityManager identityManager, java.lang.Iterable<? extends io.undertow.security.api.AuthenticationMechanism> mechanisms)
-
basicSecurity
public UndertowBlueprint<C> basicSecurity(io.undertow.security.idm.IdentityManager identityManager)
-
basicSecurity
public UndertowBlueprint<C> basicSecurity(io.undertow.security.idm.IdentityManager identityManager, java.lang.String realm)
-
customMainHandler
public UndertowBlueprint<C> customMainHandler(java.util.function.Function<? super java.util.function.Function<? super io.undertow.server.HttpServerExchange,? extends C>,? extends io.undertow.server.HttpHandler> mainHandler)
-
routing
public UndertowBlueprint<C> routing(java.util.function.Supplier<? extends RoutingDefinition<? super C>> routing)
-
mainHandler
@Deprecated(forRemoval=true) public UndertowBlueprint<C> mainHandler(java.util.function.Function<? super java.util.function.Function<? super io.undertow.server.HttpServerExchange,? extends C>,? extends io.undertow.server.HttpHandler> mainHandler)
Deprecated, for removal: This API element is subject to removal in a future version.UsecustomMainHandler(Function)instead.
-
mainHandler
@Deprecated(forRemoval=true) public UndertowBlueprint<C> mainHandler(RoutingDefinition<? super C> routing)
Deprecated, for removal: This API element is subject to removal in a future version.Userouting(Supplier)instead.
-
disableCompression
public UndertowBlueprint<C> disableCompression()
-
disableStandardErrorHandler
public UndertowBlueprint<C> disableStandardErrorHandler()
-
disableEarlyDispatch
public UndertowBlueprint<C> disableEarlyDispatch()
-
enableStackTraces
public UndertowBlueprint<C> enableStackTraces()
-
enableStackTraces
public UndertowBlueprint<C> enableStackTraces(boolean enable)
-
enableStackTraces
public UndertowBlueprint<C> enableStackTraces(java.util.function.Supplier<java.lang.Boolean> enable)
-
enableStackTraces
public UndertowBlueprint<C> enableStackTraces(java.util.function.Predicate<? super io.undertow.server.HttpServerExchange> enable)
-
suppressStackTraces
@Deprecated(forRemoval=true) public UndertowBlueprint<C> suppressStackTraces()
Deprecated, for removal: This API element is subject to removal in a future version.
-
suppressStackTraces
@Deprecated(forRemoval=true) public UndertowBlueprint<C> suppressStackTraces(boolean suppress)
Deprecated, for removal: This API element is subject to removal in a future version.
-
suppressStackTraces
@Deprecated(forRemoval=true) public UndertowBlueprint<C> suppressStackTraces(java.util.function.Supplier<java.lang.Boolean> suppress)
Deprecated, for removal: This API element is subject to removal in a future version.
-
suppressStackTraces
@Deprecated(forRemoval=true) public UndertowBlueprint<C> suppressStackTraces(java.util.function.Predicate<? super io.undertow.server.HttpServerExchange> suppress)
Deprecated, for removal: This API element is subject to removal in a future version.
-
clearHandlerChain
public UndertowBlueprint<C> clearHandlerChain()
-
addCompressionHandler
public UndertowBlueprint<C> addCompressionHandler()
-
addStandardErrorHandler
public UndertowBlueprint<C> addStandardErrorHandler()
-
addDispatchHandler
public UndertowBlueprint<C> addDispatchHandler()
-
requestContextFactory
public UndertowBlueprint<C> requestContextFactory(java.util.function.Function<? super io.undertow.server.HttpServerExchange,? extends C> factory)
-
requestContextFactory
public UndertowBlueprint<C> requestContextFactory(java.util.function.Supplier<? extends C> factory)
-
postConstruct
public UndertowBlueprint<C> postConstruct(java.util.function.Consumer<? super io.undertow.Undertow> consumer)
-
postStart
public UndertowBlueprint<C> postStart(java.util.function.Consumer<? super io.undertow.Undertow> consumer)
-
-