Interface ResponseListener

Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface ResponseListener
Used together with the RequestMock to get the response body and code from a handler that the mocked request was passed into.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    handle​(io.vertx.core.json.JsonObject response, ResponseStatus status)
    Invoked when the processing handler returns a response.
  • Method Details

    • handle

      void handle(io.vertx.core.json.JsonObject response, ResponseStatus status)
      Invoked when the processing handler returns a response.
      Parameters:
      response - the message body of the returned response.
      status - the response status code from the handler.