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

    • 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