Package org.restheart.handlers
Class PipelinedWrappingHandler
- java.lang.Object
-
- org.restheart.handlers.PipelinedHandler
-
- org.restheart.handlers.PipelinedWrappingHandler
-
- All Implemented Interfaces:
io.undertow.server.HttpHandler
public class PipelinedWrappingHandler extends PipelinedHandler
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
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidhandleRequest(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<?>>
PipelinedWrappingHandlerwrap(Service<R,S> service)-
Methods inherited from class org.restheart.handlers.PipelinedHandler
getNext, next, pipe, setNext
-
-
-
-
Method Detail
-
wrap
public static PipelinedWrappingHandler wrap(io.undertow.server.HttpHandler handler)
- Parameters:
handler-- Returns:
- the wrapping handler
-
wrap
public static <R extends ServiceRequest<?>,S extends ServiceResponse<?>> PipelinedWrappingHandler wrap(Service<R,S> service)
- Type Parameters:
R-S-- 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-S-- Parameters:
next-service-- Returns:
- the wrapping handler
-
handleRequest
public void handleRequest(io.undertow.server.HttpServerExchange exchange) throws Exception- Specified by:
handleRequestin interfaceio.undertow.server.HttpHandler- Specified by:
handleRequestin classPipelinedHandler- Parameters:
exchange-- Throws:
Exception
-
-