Package org.nustaq.kontraktor.rest
Class UndertowRESTHandler
java.lang.Object
org.nustaq.kontraktor.rest.UndertowRESTHandler
- All Implemented Interfaces:
io.undertow.server.HttpHandler
public class UndertowRESTHandler extends Object implements io.undertow.server.HttpHandler
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceUndertowRESTHandler.ParseAndDispatchREST -
Field Summary
Fields Modifier and Type Field Description protected Set<String>allowedMethodsprotected StringbasePathprotected org.nustaq.kontraktor.Actorfacadeprotected org.nustaq.serialization.FSTConfigurationjsonConfprotected com.fasterxml.jackson.databind.ObjectMappermapperstatic String[]METHODSprotected static ObjectNOVALprotected Consumer<io.undertow.server.HttpServerExchange>prepareResponseprotected Function<io.undertow.util.HeaderMap,org.nustaq.kontraktor.IPromise>requestAuthenticatorstatic UndertowRESTHandler.ParseAndDispatchRESTRESTRequestHandler -
Constructor Summary
Constructors Constructor Description UndertowRESTHandler(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 Type Method Description Set<String>getAllowedMethods()StringgetBasePath()org.nustaq.kontraktor.ActorgetFacade()org.nustaq.serialization.FSTConfigurationgetJsonConf()com.fasterxml.jackson.databind.ObjectMappergetMapper()Consumer<io.undertow.server.HttpServerExchange>getPrepareResponse()Function<io.undertow.util.HeaderMap,org.nustaq.kontraktor.IPromise>getRequestAuthenticator()static UndertowRESTHandler.ParseAndDispatchRESTgetRESTRequestHandler()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
-
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
-