Package org.restheart.handlers
Class PipelinedWrappingHandler
java.lang.Object
org.restheart.handlers.PipelinedHandler
org.restheart.handlers.PipelinedWrappingHandler
- All Implemented Interfaces:
io.undertow.server.HttpHandler
wraps a HttpHandler into a PipelinedHttpHandler
- Author:
- Andrea Di Cesare <andrea@softinstigate.com>
-
Field Summary
Fields inherited from class org.restheart.handlers.PipelinedHandler
CONTENT_TYPE -
Method Summary
Modifier and TypeMethodDescriptionvoidhandleRequest(io.undertow.server.HttpServerExchange exchange) static PipelinedWrappingHandlerwrap(io.undertow.server.HttpHandler handler) static PipelinedWrappingHandlerwrap(PipelinedHandler next, io.undertow.server.HttpHandler handler) static <R extends ServiceRequest<?>,S extends ServiceResponse<?>>
PipelinedWrappingHandlerwrap(PipelinedHandler next, Service<R, S> service) static <R extends ServiceRequest<?>,S extends ServiceResponse<?>>
PipelinedWrappingHandlerMethods inherited from class org.restheart.handlers.PipelinedHandler
getNext, next, pipe, setNext
-
Method Details
-
wrap
- Parameters:
handler-- Returns:
- the wrapping handler
-
wrap
public static <R extends ServiceRequest<?>,S extends ServiceResponse<?>> PipelinedWrappingHandler wrap(Service<R, S> service) - Type Parameters:
R- RequestS- Response- Parameters:
service-- Returns:
- the wrapping handler
-
wrap
public static PipelinedWrappingHandler wrap(PipelinedHandler next, io.undertow.server.HttpHandler handler) - Parameters:
next-handler-- Returns:
- the wrapping handler
-
wrap
public static <R extends ServiceRequest<?>,S extends ServiceResponse<?>> PipelinedWrappingHandler wrap(PipelinedHandler next, Service<R, S> service) - Type Parameters:
R- RequestS- Response- Parameters:
next-service-- Returns:
- the wrapping handler
-
handleRequest
- Specified by:
handleRequestin interfaceio.undertow.server.HttpHandler- Specified by:
handleRequestin classPipelinedHandler- Parameters:
exchange-- Throws:
Exception
-