Class HttpClassCallback
- Author:
- jamesdbloom
-
Nested Class Summary
Nested classes/interfaces inherited from class org.mockserver.model.Action
Action.Direction, Action.Type -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic HttpClassCallbackcallback()Static builder to create a callback.static HttpClassCallbackcallback(Class<? extends ExpectationCallback<? extends HttpMessage>> callbackClass) Static builder to create a callback, which take a callback class.static HttpClassCallbackStatic builder to create a callback, which take a callback class as a string.booleangetType()inthashCode()withActionType(Action.Type actionType) withCallbackClass(Class<? extends ExpectationCallback<? extends HttpMessage>> callbackClass) The class to callbackwithCallbackClass(String callbackClass) The class to callback as a fully qualified class nameMethods inherited from class org.mockserver.model.Action
getDelay, getExpectationId, isPrimary, setExpectationId, withDelay, withDelay, withPrimaryMethods inherited from class org.mockserver.model.ObjectWithJsonToString
toStringMethods inherited from class org.mockserver.model.ObjectWithReflectiveEqualsHashCodeToString
fieldsExcludedFromEqualsAndHashCode
-
Constructor Details
-
HttpClassCallback
public HttpClassCallback()
-
-
Method Details
-
callback
Static builder to create a callback. -
callback
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 - implement org.mockserver.mock.action.ExpectationForwardCallback or - implement org.mockserver.mock.action.ExpectationForwardAndResponseCallback - 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"
-
callback
public static HttpClassCallback callback(Class<? extends ExpectationCallback<? extends HttpMessage>> callbackClass) Static builder to create a callback, which take a callback class.The callback class must: - implement org.mockserver.mock.action.ExpectationResponseCallback or - implement org.mockserver.mock.action.ExpectationForwardCallback or - implement org.mockserver.mock.action.ExpectationForwardAndResponseCallback - 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
-
withCallbackClass
The class to callback as a fully qualified class nameThe callback class must: - implement org.mockserver.mock.action.ExpectationResponseCallback or - implement org.mockserver.mock.action.ExpectationForwardCallback or - implement org.mockserver.mock.action.ExpectationForwardAndResponseCallback - 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"
-
withCallbackClass
public HttpClassCallback withCallbackClass(Class<? extends ExpectationCallback<? extends HttpMessage>> callbackClass) The class to callbackThe callback class must: - implement org.mockserver.mock.action.ExpectationResponseCallback or - implement org.mockserver.mock.action.ExpectationForwardCallback or - implement org.mockserver.mock.action.ExpectationForwardAndResponseCallback - 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"
-
withActionType
-
getType
- Specified by:
getTypein classAction<HttpClassCallback>
-
equals
- Overrides:
equalsin classAction<HttpClassCallback>
-
hashCode
public int hashCode()- Overrides:
hashCodein classAction<HttpClassCallback>
-