Class NormalOrBulkDispatcherHandler

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

public class NormalOrBulkDispatcherHandler extends PipelinedHandler
this handler dispatches request to normal or bulk post collection handlers depending on the content to be an object or an array
Author:
Andrea Di Cesare <andrea@softinstigate.com>
  • Constructor Details

    • NormalOrBulkDispatcherHandler

      public NormalOrBulkDispatcherHandler(PipelinedHandler nextNormal, PipelinedHandler nextBulk)
      Creates a new instance of PostCollectionHandler
      Parameters:
      nextNormal - next handler for normal requests
      nextBulk - next handler for bulk requests
  • Method Details

    • handleRequest

      public void handleRequest(io.undertow.server.HttpServerExchange exchange) throws Exception
      Specified by:
      handleRequest in interface io.undertow.server.HttpHandler
      Specified by:
      handleRequest in class PipelinedHandler
      Parameters:
      exchange -
      Throws:
      Exception