Package org.restheart.handlers
Class PipelinedHandler
java.lang.Object
org.restheart.handlers.PipelinedHandler
- All Implemented Interfaces:
io.undertow.server.HttpHandler
- Direct Known Subclasses:
PipelinedWrappingHandler,QueryStringRebuilder
base class to implement a PipelinedHandler
- Author:
- Andrea Di Cesare <andrea@softinstigate.com>
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCreates a default instance of PipedHttpHandler with next = null -
Method Summary
Modifier and TypeMethodDescriptionprotected PipelinedHandlergetNext()abstract voidhandleRequest(io.undertow.server.HttpServerExchange exchange) protected voidnext(io.undertow.server.HttpServerExchange exchange) static PipelinedHandlerpipe(PipelinedHandler... handlers) pipes multiple PipelinedHandler in a pipelineprotected voidsetNext(PipelinedHandler next) set the next PipedHttpHandler
-
Field Details
-
CONTENT_TYPE
- See Also:
-
-
Constructor Details
-
PipelinedHandler
public PipelinedHandler()Creates a default instance of PipedHttpHandler with next = null -
PipelinedHandler
- Parameters:
next- the next handler in this chain
-
-
Method Details
-
handleRequest
- Specified by:
handleRequestin interfaceio.undertow.server.HttpHandler- Parameters:
exchange-- Throws:
Exception
-
getNext
- Returns:
- the next PipedHttpHandler
-
setNext
set the next PipedHttpHandler- Parameters:
next-
-
next
- Throws:
Exception
-
pipe
pipes multiple PipelinedHandler in a pipeline- Parameters:
handlers-- Returns:
-