Class BasicHttpServerExpectationDecorator

    • Constructor Detail

      • BasicHttpServerExpectationDecorator

        public BasicHttpServerExpectationDecorator​(HttpServerRequestHandler requestHandler)
    • Method Detail

      • verify

        protected ClassicHttpResponse verify​(ClassicHttpRequest request,
                                             HttpContext context)
        Verifies the HTTP request and decides whether it meets server expectations and the request processing can continue.
        Parameters:
        request - the incoming HTTP request.
        context - the actual execution context.
        Returns:
        null if the request meets expectations or a final HTTP response with an error status representing the cause of expectation failure.