public class HttpClassCallback extends Action
Action.Type
Constructor and Description |
---|
HttpClassCallback() |
Modifier and Type | Method and 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
|
toString
equals, fieldsExcludedFromEqualsAndHashCode, hashCode, key
public static HttpClassCallback callback()
public static HttpClassCallback callback(String callbackClass)
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
callbackClass
- class to callback as a fully qualified class name, i.e. "com.foo.MyExpectationResponseCallback"public String getCallbackClass()
public HttpClassCallback withCallbackClass(String callbackClass)
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
callbackClass
- class to callback as a fully qualified class name, i.e. "com.foo.MyExpectationResponseCallback"public HttpClassCallback withActionType(Action.Type actionType)
public Action.Type getType()
Copyright © 2018. All rights reserved.