Class MockExpectationResponseCallback

  • All Implemented Interfaces:
    org.mockserver.mock.action.ExpectationCallback<org.mockserver.model.HttpResponse>, org.mockserver.mock.action.ExpectationResponseCallback

    public class MockExpectationResponseCallback
    extends Object
    implements org.mockserver.mock.action.ExpectationResponseCallback
    • Constructor Detail

      • MockExpectationResponseCallback

        public MockExpectationResponseCallback​(String name,
                                               org.mockserver.mock.action.ExpectationResponseCallback callback,
                                               int count)
    • Method Detail

      • getName

        public String getName()
      • getCount

        public int getCount()
      • handle

        public org.mockserver.model.HttpResponse handle​(org.mockserver.model.HttpRequest httpRequest)
        Specified by:
        handle in interface org.mockserver.mock.action.ExpectationCallback<org.mockserver.model.HttpResponse>
        Specified by:
        handle in interface org.mockserver.mock.action.ExpectationResponseCallback