Package io.nitric.faas.http
Class HttpMiddleware.FinalMiddleware
- java.lang.Object
-
- io.nitric.faas.http.HttpMiddleware
-
- io.nitric.faas.http.HttpMiddleware.FinalMiddleware
-
- Enclosing class:
- HttpMiddleware
public static class HttpMiddleware.FinalMiddleware extends HttpMiddleware
Provides the final HttpMiddleware in the chain. This handler will simply return the context and not invoke the next middleware.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class io.nitric.faas.http.HttpMiddleware
HttpMiddleware.FinalMiddleware, HttpMiddleware.HandlerAdapter
-
-
Field Summary
-
Fields inherited from class io.nitric.faas.http.HttpMiddleware
FINAL_MIDDLEWARE, next
-
-
Constructor Summary
Constructors Constructor Description FinalMiddleware()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description HttpContext
handle(HttpContext context, HttpMiddleware next)
This method will simply return the context and not invoke the next middleware.-
Methods inherited from class io.nitric.faas.http.HttpMiddleware
getNext, setNext
-
-
-
-
Method Detail
-
handle
public HttpContext handle(HttpContext context, HttpMiddleware next)
This method will simply return the context and not invoke the next middleware.- Specified by:
handle
in classHttpMiddleware
- Parameters:
context
- the HTTP request/response contextnext
- the next HttpMiddleware handler which will be ignored- Returns:
- the context invoked with
-
-