Package org.mockserver.model
Class HttpClassCallback
- java.lang.Object
-
- org.mockserver.model.ObjectWithReflectiveEqualsHashCodeToString
-
- org.mockserver.model.ObjectWithJsonToString
-
- org.mockserver.model.Action<HttpClassCallback>
-
- org.mockserver.model.HttpClassCallback
-
public class HttpClassCallback extends Action<HttpClassCallback>
- Author:
- jamesdbloom
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.mockserver.model.Action
Action.Direction, Action.Type
-
-
Constructor Summary
Constructors Constructor Description HttpClassCallback()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static HttpClassCallback
callback()
Static builder to create a callback.static HttpClassCallback
callback(String callbackClass)
Static builder to create a callback, which take a callback class as a string.String
getCallbackClass()
Action.Type
getType()
HttpClassCallback
withActionType(Action.Type actionType)
HttpClassCallback
withCallbackClass(String callbackClass)
The class to callback as a fully qualified class name-
Methods inherited from class org.mockserver.model.ObjectWithJsonToString
toString
-
Methods inherited from class org.mockserver.model.ObjectWithReflectiveEqualsHashCodeToString
equals, fieldsExcludedFromEqualsAndHashCode, hashCode, key
-
-
-
-
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 nameThe 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"
-
withActionType
public HttpClassCallback withActionType(Action.Type actionType)
-
getType
public Action.Type getType()
- Specified by:
getType
in classAction<HttpClassCallback>
-
-