Class RequestDispatcherHandler

java.lang.Object
org.restheart.handlers.PipelinedHandler
org.restheart.mongodb.handlers.RequestDispatcherHandler
All Implemented Interfaces:
io.undertow.server.HttpHandler

public class RequestDispatcherHandler extends PipelinedHandler
Author:
Andrea Di Cesare <andrea@softinstigate.com>
  • Method Details

    • getInstance

      public static RequestDispatcherHandler getInstance()
      Returns:
    • handleRequest

      public void handleRequest(io.undertow.server.HttpServerExchange exchange) throws Exception
      Handle the request, delegating to the proper PipelinedHandler
      Specified by:
      handleRequest in interface io.undertow.server.HttpHandler
      Specified by:
      handleRequest in class PipelinedHandler
      Parameters:
      exchange - the HttpServerExchange
      Throws:
      Exception
    • getPipedHttpHandler

      public PipelinedHandler getPipedHttpHandler(ExchangeKeys.TYPE type, ExchangeKeys.METHOD method)
      Given a type and method, return the appropriate PipelinedHandler which can handle this request
      Parameters:
      type -
      method -
      Returns:
      the PipelinedHandler
    • putHandler

      public void putHandler(ExchangeKeys.TYPE type, ExchangeKeys.METHOD method, PipelinedHandler handler)
      Given a type and method, put in a PipelinedHandler
      Parameters:
      type - the DB type
      method - the HTTP method
      handler - the PipelinedHandler