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 com.fasterxml.jackson.databind.ObjectMapperstatic final String[]protected 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 TypeMethodDescriptionorg.nustaq.kontraktor.Actororg.nustaq.serialization.FSTConfigurationcom.fasterxml.jackson.databind.ObjectMapperConsumer<io.undertow.server.HttpServerExchange>Function<io.undertow.util.HeaderMap,org.nustaq.kontraktor.IPromise> voidhandleRequest(io.undertow.server.HttpServerExchange exchange) voidsetAllowedMethods(Set<String> allowedMethods) voidsetMapper(com.fasterxml.jackson.databind.ObjectMapper mapper)
-
Field Details
-
NOVAL
-
METHODS
-
mapper
protected com.fasterxml.jackson.databind.ObjectMapper mapper -
basePath
-
facade
protected org.nustaq.kontraktor.Actor facade -
jsonConf
protected org.nustaq.serialization.FSTConfiguration jsonConf -
requestAuthenticator
-
allowedMethods
-
prepareResponse
-
RESTRequestHandler
-
-
Constructor Details
-
UndertowRESTHandler
-
-
Method Details
-
getMapper
public com.fasterxml.jackson.databind.ObjectMapper getMapper() -
setMapper
public void setMapper(com.fasterxml.jackson.databind.ObjectMapper mapper) -
setAllowedMethods
-
handleRequest
- Specified by:
handleRequestin interfaceio.undertow.server.HttpHandler- Throws:
Exception
-
getBasePath
-
getFacade
public org.nustaq.kontraktor.Actor getFacade() -
getJsonConf
public org.nustaq.serialization.FSTConfiguration getJsonConf() -
getRequestAuthenticator
public Function<io.undertow.util.HeaderMap,org.nustaq.kontraktor.IPromise> getRequestAuthenticator() -
getAllowedMethods
-
getPrepareResponse
-
getRESTRequestHandler
-