Class HttpResponseActionHandler

java.lang.Object
org.mockserver.mock.action.http.HttpResponseActionHandler

public class HttpResponseActionHandler extends Object
Author:
jamesdbloom
  • Constructor Details

  • Method Details

    • handle

      public HttpResponse handle(HttpResponse httpResponse)
    • handle

      public HttpResponse handle(HttpResponse httpResponse, HttpRequest httpRequest)
    • handle

      public HttpResponse handle(HttpResponse httpResponse, HttpRequest httpRequest, RequestDefinition matchedRequest)
      Materialises the response for a matched expectation against the incoming request.
      Parameters:
      httpResponse - the response action from the matched expectation
      httpRequest - the incoming request (drives templated bodies and GraphQL synthesis)
      matchedRequest - the matched expectation's RequestDefinition; when it carries a GraphQLBody with a registered schema and the response has no body, a schema-valid GraphQL response is synthesized from the request's query