Class AggregationTransformer

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

public class AggregationTransformer extends PipelinedHandler
transformer in charge of escaping the aggregation stages that can contain dollar prefixed keys (for operators)
Author:
Andrea Di Cesare <andrea@softinstigate.com>
  • Constructor Details

    • AggregationTransformer

      public AggregationTransformer(boolean phase)
      Parameters:
      phase - if 'true' then transform request otherwise transform the response
  • 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
      Throws:
      Exception