Class 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.
    • Constructor Detail

      • FinalMiddleware

        public FinalMiddleware()
    • 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 class HttpMiddleware
        Parameters:
        context - the HTTP request/response context
        next - the next HttpMiddleware handler which will be ignored
        Returns:
        the context invoked with