Package org.restheart.mongodb.handlers
Class NormalOrBulkDispatcherHandler
java.lang.Object
org.restheart.handlers.PipelinedHandler
org.restheart.mongodb.handlers.NormalOrBulkDispatcherHandler
- All Implemented Interfaces:
io.undertow.server.HttpHandler
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>
-
Field Summary
Fields inherited from class org.restheart.handlers.PipelinedHandler
CONTENT_TYPE -
Constructor Summary
ConstructorsConstructorDescriptionNormalOrBulkDispatcherHandler(PipelinedHandler nextNormal, PipelinedHandler nextBulk) Creates a new instance of PostCollectionHandler -
Method Summary
Modifier and TypeMethodDescriptionvoidhandleRequest(io.undertow.server.HttpServerExchange exchange) Methods inherited from class org.restheart.handlers.PipelinedHandler
getNext, next, pipe, setNext
-
Constructor Details
-
NormalOrBulkDispatcherHandler
Creates a new instance of PostCollectionHandler- Parameters:
nextNormal- next handler for normal requestsnextBulk- next handler for bulk requests
-
-
Method Details
-
handleRequest
- Specified by:
handleRequestin interfaceio.undertow.server.HttpHandler- Specified by:
handleRequestin classPipelinedHandler- Parameters:
exchange-- Throws:
Exception
-