A MockOperation for mocking HTTP-based Interfaces Operation and returning a MockResponse
Type Params | Return Type | Name and description |
---|---|---|
|
ResponseType |
addNewMockResponse(java.lang.String name) |
|
void |
addResponseFromResult(MockResult mockResult) |
|
java.lang.String |
getDefaultResponse() |
|
java.lang.String |
getDispatchStyle() |
|
java.lang.String |
getDispatchXPath() This is a container used by dispatcher to xpath |
|
MockOperationDispatcher<RequestType, ResponseType> |
getDispatcher() |
|
MockResult<RequestType, ResponseType> |
getLastMockResult() |
|
ResponseType |
getMockResponseAt(int index) |
|
ResponseType |
getMockResponseByName(java.lang.String name) |
|
int |
getMockResponseCount() |
|
java.util.List<ResponseType> |
getMockResponses() |
|
GenericMockService |
getMockService() |
|
Operation |
getOperation() |
|
ParameterRuleEngine |
getParameterRuleEngine(ParameterDispatcherContext dispatcherContext) |
|
java.lang.String |
getRouteScript() |
|
java.lang.String |
getScript() This is a container used by dispatcher to save script |
|
java.lang.String |
getScriptHelpUrl() |
|
boolean |
isConditionalRoutingEnabled() |
|
boolean |
isRouteEnabled() |
|
boolean |
isSaveRoutedResponse() |
|
void |
removeMockResponse(ResponseType mockResponse) |
|
void |
setConditionalRoutingEnabled(boolean conditionalRoutingEnabled) |
|
void |
setDefaultResponse(java.lang.String response) |
|
MockOperationDispatcher |
setDispatchStyle(java.lang.String style) |
|
void |
setDispatchXPath(java.lang.String xPath) @param xPath this is a String that might be needed by the dispatch style used in this mock operation. |
|
void |
setMockResultRoutedOperation(MockResult nonResponseAssociatedMockResult) Call this for a MockResult, created for this operation, that doesn't belong to any specific MockResponse. |
|
void |
setRouteEnabled(boolean isRouteEnabled) |
|
void |
setRouteScript(java.lang.String routeScript) |
|
void |
setSaveRoutedResponse(boolean saveRoutedResponse) |
|
void |
setScript(java.lang.String script) @param script this is a String that might be needed by the dispatch style used in this mock operation. |
|
boolean |
shouldRoute(GenericMockRequest request) |
This is a container used by dispatcher to xpath
This is a container used by dispatcher to save script
xPath
- this is a String that might be needed by the dispatch style used in this mock operation.Call this for a MockResult, created for this operation, that doesn't belong to any specific MockResponse. This can happen for Routing.
script
- this is a String that might be needed by the dispatch style used in this mock operation.