Class HttpClassCallback

    • Constructor Detail

      • HttpClassCallback

        public HttpClassCallback()
    • Method Detail

      • callback

        public static HttpClassCallback callback()
        Static builder to create a callback.
      • callback

        public static HttpClassCallback callback​(String callbackClass)
        Static builder to create a callback, which take a callback class as a string.

        The callback class must: - implement org.mockserver.mock.action.ExpectationResponseCallback or org.mockserver.mock.action.ExpectationForwardCallback - have a zero argument constructor - be available in the classpath of the MockServer

        Parameters:
        callbackClass - class to callback as a fully qualified class name, i.e. "com.foo.MyExpectationResponseCallback"
      • getCallbackClass

        public String getCallbackClass()
      • withCallbackClass

        public HttpClassCallback withCallbackClass​(String callbackClass)
        The class to callback as a fully qualified class name

        The callback class must: - implement org.mockserver.mock.action.ExpectationResponseCallback or org.mockserver.mock.action.ExpectationForwardCallback - have a zero argument constructor - be available in the classpath of the MockServer

        Parameters:
        callbackClass - class to callback as a fully qualified class name, i.e. "com.foo.MyExpectationResponseCallback"