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
  • Field Details

    • NOVAL

      protected static final Object NOVAL
    • METHODS

      public static final String[] METHODS
    • mapper

      protected com.fasterxml.jackson.databind.ObjectMapper mapper
    • basePath

      protected String basePath
    • facade

      protected org.nustaq.kontraktor.Actor facade
    • jsonConf

      protected org.nustaq.serialization.FSTConfiguration jsonConf
    • requestAuthenticator

      protected Function<io.undertow.util.HeaderMap,org.nustaq.kontraktor.IPromise> requestAuthenticator
    • allowedMethods

      protected Set<String> allowedMethods
    • prepareResponse

      protected Consumer<io.undertow.server.HttpServerExchange> prepareResponse
    • RESTRequestHandler

      public static UndertowRESTHandler.ParseAndDispatchREST RESTRequestHandler
  • Constructor Details

    • UndertowRESTHandler

      public 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 Details

    • getMapper

      public com.fasterxml.jackson.databind.ObjectMapper getMapper()
    • setMapper

      public void setMapper(com.fasterxml.jackson.databind.ObjectMapper mapper)
    • setAllowedMethods

      public void setAllowedMethods(Set<String> allowedMethods)
    • handleRequest

      public void handleRequest(io.undertow.server.HttpServerExchange exchange) throws Exception
      Specified by:
      handleRequest in interface io.undertow.server.HttpHandler
      Throws:
      Exception
    • getBasePath

      public String 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

      public Set<String> getAllowedMethods()
    • getPrepareResponse

      public Consumer<io.undertow.server.HttpServerExchange> getPrepareResponse()
    • getRESTRequestHandler

      public static UndertowRESTHandler.ParseAndDispatchREST getRESTRequestHandler()