Package org.restheart.handlers.injectors
Class PipelineInfoInjector
java.lang.Object
org.restheart.handlers.PipelinedHandler
org.restheart.handlers.injectors.PipelineInfoInjector
- All Implemented Interfaces:
io.undertow.server.HttpHandler
- 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()
-
Field Summary
Fields inherited from class org.restheart.handlers.PipelinedHandler
CONTENT_TYPE -
Constructor Summary
ConstructorsConstructorDescriptionCreates a new instance of PipelineInfoInjectorCreates a new instance of PipelineInfoInjector -
Method Summary
Modifier and TypeMethodDescriptionvoidhandleRequest(io.undertow.server.HttpServerExchange exchange) Methods inherited from class org.restheart.handlers.PipelinedHandler
getNext, next, pipe, setNext
-
Constructor Details
-
PipelineInfoInjector
Creates a new instance of PipelineInfoInjector- Parameters:
next-
-
PipelineInfoInjector
public PipelineInfoInjector()Creates a new instance of PipelineInfoInjector
-
-
Method Details
-
handleRequest
- Specified by:
handleRequestin interfaceio.undertow.server.HttpHandler- Specified by:
handleRequestin classPipelinedHandler- Parameters:
exchange-- Throws:
Exception
-