Class PipelineInfoInjector

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

public class PipelineInfoInjector extends PipelinedHandler
Author:
Andrea Di Cesare <andrea@softinstigate.com> Injects the PipelineInfo to allows to programmatically understand which pipeline (service, proxy or static resource) is handling the request via Request.getPipelineInfo()
  • Constructor Details

    • PipelineInfoInjector

      public PipelineInfoInjector(PipelinedHandler next)
      Creates a new instance of PipelineInfoInjector
      Parameters:
      next -
    • PipelineInfoInjector

      public PipelineInfoInjector()
      Creates a new instance of PipelineInfoInjector
  • 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