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 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>disableCompression()UndertowBlueprint<C>disableEarlyDispatch()UndertowBlueprint<C>disableStandardErrorHandler()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()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)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)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.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()UndertowBlueprint<C>suppressStackTraces(boolean suppress)UndertowBlueprint<C>suppressStackTraces(java.util.function.Predicate<? super io.undertow.server.HttpServerExchange> suppress)UndertowBlueprint<C>suppressStackTraces(java.util.function.Supplier<java.lang.Boolean> suppress)
-
-
-
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
public static <C> UndertowBlueprint.EP<C> holder()
-
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)
-
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)
-
mainHandler
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)
-
mainHandler
public UndertowBlueprint<C> mainHandler(RoutingDefinition<? super C> routing)
-
disableCompression
public UndertowBlueprint<C> disableCompression()
-
disableStandardErrorHandler
public UndertowBlueprint<C> disableStandardErrorHandler()
-
disableEarlyDispatch
public UndertowBlueprint<C> disableEarlyDispatch()
-
suppressStackTraces
public UndertowBlueprint<C> suppressStackTraces()
-
suppressStackTraces
public UndertowBlueprint<C> suppressStackTraces(boolean suppress)
-
suppressStackTraces
public UndertowBlueprint<C> suppressStackTraces(java.util.function.Supplier<java.lang.Boolean> suppress)
-
suppressStackTraces
public UndertowBlueprint<C> suppressStackTraces(java.util.function.Predicate<? super io.undertow.server.HttpServerExchange> suppress)
-
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)
-
-