Class UndertowConfig
java.lang.Object
ch.raffael.meldioc.library.http.server.undertow.UndertowConfig
Acceptor for the base Undertow configuration.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic final class -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbasicSecurity(io.undertow.security.idm.IdentityManager identityManager) basicSecurity(io.undertow.security.idm.IdentityManager identityManager, String realm) static UndertowConfig.HandlecustomMainHandler(Supplier<? extends io.undertow.server.HttpHandler> mainHandler) dispatchAdvice(io.vavr.control.Option<? extends Supplier<? extends ch.raffael.meldioc.util.advice.AroundAdvice>> dispatchAdvice) dispatchAdvice(Supplier<? extends ch.raffael.meldioc.util.advice.AroundAdvice> dispatchAdvice) enableStackTraces(boolean enable) enableStackTraces(Predicate<? super io.undertow.server.HttpServerExchange> enable) enableStackTraces(Supplier<Boolean> enable) handler(Function<? super io.undertow.server.HttpHandler, ? extends io.undertow.server.HttpHandler> handler) httpAll(int port) httpAllSecure(int port, SSLContext sslContext) httpLocal(int port) httpLocalSecure(int port, SSLContext sslContext) httpSecure(String address, int port, SSLContext sslContext) postConstruct(Consumer<? super io.undertow.Undertow> consumer) prependHandler(Function<? super io.undertow.server.HttpHandler, ? extends io.undertow.server.HttpHandler> handler) routing(Supplier<? extends RoutingDefinition> routing) security(io.undertow.security.idm.IdentityManager identityManager) security(io.undertow.security.idm.IdentityManager identityManager, io.undertow.security.api.AuthenticationMechanism... mechanisms) security(io.undertow.security.idm.IdentityManager identityManager, Iterable<? extends io.undertow.security.api.AuthenticationMechanism> mechanisms)
-
Field Details
-
ADDRESS_ALL
- See Also:
-
ADDRESS_LOCAL
- See Also:
-
-
Constructor Details
-
UndertowConfig
public UndertowConfig()
-
-
Method Details
-
create
public static UndertowConfig.Handle create(Supplier<? extends io.undertow.Undertow.Builder> undertowBuilderSupplier) -
httpAll
-
httpLocal
-
http
-
httpAllSecure
-
httpLocalSecure
-
httpSecure
-
handler
public UndertowConfig handler(Function<? super io.undertow.server.HttpHandler, ? extends io.undertow.server.HttpHandler> handler) -
prependHandler
public UndertowConfig prependHandler(Function<? super io.undertow.server.HttpHandler, ? extends io.undertow.server.HttpHandler> handler) -
dispatchAdvice
public UndertowConfig dispatchAdvice(Supplier<? extends ch.raffael.meldioc.util.advice.AroundAdvice> dispatchAdvice) -
dispatchAdvice
public UndertowConfig dispatchAdvice(io.vavr.control.Option<? extends Supplier<? extends ch.raffael.meldioc.util.advice.AroundAdvice>> dispatchAdvice) -
security
public UndertowConfig.SecurityBuilder security(io.undertow.security.idm.IdentityManager identityManager) -
security
public UndertowConfig security(io.undertow.security.idm.IdentityManager identityManager, io.undertow.security.api.AuthenticationMechanism... mechanisms) -
security
public UndertowConfig security(io.undertow.security.idm.IdentityManager identityManager, Iterable<? extends io.undertow.security.api.AuthenticationMechanism> mechanisms) -
basicSecurity
-
basicSecurity
public UndertowConfig basicSecurity(io.undertow.security.idm.IdentityManager identityManager, String realm) -
customMainHandler
public UndertowConfig customMainHandler(Supplier<? extends io.undertow.server.HttpHandler> mainHandler) -
routing
-
disableCompression
-
disableStandardErrorHandler
-
disableEarlyDispatch
-
enableStackTraces
-
enableStackTraces
-
enableStackTraces
-
enableStackTraces
public UndertowConfig enableStackTraces(Predicate<? super io.undertow.server.HttpServerExchange> enable) -
clearHandlerChain
-
addCompressionHandler
-
addStandardErrorHandler
-
addDispatchHandler
-
postConstruct
-
postStart
-