Package org.nustaq.kontraktor.rest
Class UndertowRESTHandler
java.lang.Object
org.nustaq.kontraktor.rest.UndertowRESTHandler
- All Implemented Interfaces:
io.undertow.server.HttpHandler
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Stringprotected org.nustaq.kontraktor.Actorprotected org.nustaq.serialization.FSTConfigurationprotected static final Objectprotected Consumer<io.undertow.server.HttpServerExchange>protected Function<io.undertow.util.HeaderMap,org.nustaq.kontraktor.IPromise> -
Constructor Summary
ConstructorsConstructorDescriptionUndertowRESTHandler(String basePath, org.nustaq.kontraktor.Actor facade, Function<io.undertow.util.HeaderMap, org.nustaq.kontraktor.IPromise> requestAuthenticator, Consumer<io.undertow.server.HttpServerExchange> prepareResponse) -
Method Summary
Modifier and TypeMethodDescriptionvoidhandleRequest(io.undertow.server.HttpServerExchange exchange) voidsetAllowedMethods(Set<String> allowedMethods)
-
Field Details
-
NOVAL
-
basePath
-
facade
protected org.nustaq.kontraktor.Actor facade -
jsonConf
protected org.nustaq.serialization.FSTConfiguration jsonConf -
requestAuthenticator
-
allowedMethods
-
prepareResponse
-
RESTRequestHandler
-
-
Constructor Details
-
UndertowRESTHandler
-
-
Method Details
-
setAllowedMethods
-
handleRequest
- Specified by:
handleRequestin interfaceio.undertow.server.HttpHandler- Throws:
Exception
-