Package org.mockserver.mock.action.http
Class HttpResponseActionHandler
java.lang.Object
org.mockserver.mock.action.http.HttpResponseActionHandler
- Author:
- jamesdbloom
-
Constructor Summary
ConstructorsConstructorDescriptionHttpResponseActionHandler(MockServerLogger mockServerLogger, Configuration configuration) -
Method Summary
Modifier and TypeMethodDescriptionhandle(HttpResponse httpResponse) handle(HttpResponse httpResponse, HttpRequest httpRequest) handle(HttpResponse httpResponse, HttpRequest httpRequest, RequestDefinition matchedRequest) Materialises the response for a matched expectation against the incoming request.
-
Constructor Details
-
HttpResponseActionHandler
-
-
Method Details
-
handle
-
handle
-
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 expectationhttpRequest- the incoming request (drives templated bodies and GraphQL synthesis)matchedRequest- the matched expectation'sRequestDefinition; when it carries aGraphQLBodywith a registered schema and the response has no body, a schema-valid GraphQL response is synthesized from the request's query
-