public class HttpClassCallback extends Action<HttpClassCallback>
Action.Direction, Action.Type
Constructor and Description |
---|
HttpClassCallback() |
Modifier and Type | Method and Description |
---|---|
static HttpClassCallback |
callback()
Static builder to create a callback.
|
static HttpClassCallback |
callback(Class<? extends ExpectationCallback<HttpRequest>> callbackClass)
Static builder to create a callback, which take a callback class.
|
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(Class<? extends ExpectationCallback<HttpRequest>> callbackClass)
The class to callback
|
HttpClassCallback |
withCallbackClass(String callbackClass)
The class to callback as a fully qualified class name
|
toString
equals, fieldsExcludedFromEqualsAndHashCode, hashCode
public static HttpClassCallback callback()
public static HttpClassCallback callback(String callbackClass)
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
callbackClass
- class to callback as a fully qualified class name, i.e. "com.foo.MyExpectationResponseCallback"public static HttpClassCallback callback(Class<? extends ExpectationCallback<HttpRequest>> callbackClass)
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
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 - 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
callbackClass
- class to callback as a fully qualified class name, i.e. "com.foo.MyExpectationResponseCallback"public HttpClassCallback withCallbackClass(Class<? extends ExpectationCallback<HttpRequest>> callbackClass)
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
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()
getType
in class Action<HttpClassCallback>
Copyright © 2020. All rights reserved.