public abstract class AbstractMockOperation<BaseMockOperationConfigType extends BaseMockOperationConfig,MockResponseType extends MockResponse> extends AbstractWsdlModelItem<BaseMockOperationConfigType> implements MockOperation, PropertyChangeListener
Modifier and Type | Field and Description |
---|---|
static String |
DISPATCH_PATH_PROPERTY |
static String |
DISPATCH_STYLE_PROPERTY |
DESCRIPTION_PROPERTY, ICON_PROPERTY, LABEL_PROPERTY, NAME_PROPERTY
Modifier | Constructor and Description |
---|---|
protected |
AbstractMockOperation(BaseMockOperationConfigType config,
MockService parent,
String icon) |
Modifier and Type | Method and Description |
---|---|
void |
addMockResponse(MockResponseType response) |
String |
getDefaultResponse() |
MockOperationDispatcher |
getDispatcher() |
String |
getDispatchStyle() |
MockResult |
getLastMockResult() |
MockResponseType |
getMockResponseAt(int index) |
MockResponseType |
getMockResponseByName(String name) |
int |
getMockResponseCount() |
List<MockResponse> |
getMockResponses() |
String |
getScript()
This is a container used by dispatcher to save script, xpath expressions etc
|
void |
removeMockResponse(MockResponse mockResponse) |
abstract void |
removeResponseFromConfig(int index) |
void |
setDefaultResponse(String defaultResponse) |
void |
setDispatcher(MockOperationDispatcher dispatcher) |
MockOperationDispatcher |
setDispatchStyle(String dispatchStyle) |
void |
setExampleScript() |
void |
setScript(String dispatchPath) |
protected void |
setupConfig(BaseMockOperationConfigType config) |
addExternalDependencies, afterLoad, beforeSave, dependsOn, getConfig, getDescription, getExternalDependencies, getIcon, getId, getName, getParent, getSettings, getWsdlModelItemById, getWsdlModelItemByName, release, resolve, setConfig, setDescription, setIcon, setName, setSettings
addPropertyChangeListener, addPropertyChangeListener, fireIndexedPropertyChange, fireIndexedPropertyChange, fireIndexedPropertyChange, getChildren, getProject, notifyPropertyChanged, notifyPropertyChanged, notifyPropertyChanged, notifyPropertyChanged, removePropertyChangeListener, removePropertyChangeListener
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addNewMockResponse, getMockService, getOperation, getScriptHelpUrl
getChildren, getDescription, getIcon, getId, getName, getParent, getProject, getSettings
addPropertyChangeListener, addPropertyChangeListener, removePropertyChangeListener, removePropertyChangeListener
release
propertyChange
public static final String DISPATCH_PATH_PROPERTY
public static final String DISPATCH_STYLE_PROPERTY
protected AbstractMockOperation(BaseMockOperationConfigType config, MockService parent, String icon)
protected void setupConfig(BaseMockOperationConfigType config)
public void addMockResponse(MockResponseType response)
public List<MockResponse> getMockResponses()
getMockResponses
in interface MockOperation
public MockResponseType getMockResponseAt(int index)
getMockResponseAt
in interface MockOperation
public int getMockResponseCount()
getMockResponseCount
in interface MockOperation
public MockResponseType getMockResponseByName(String name)
getMockResponseByName
in interface MockOperation
public MockResult getLastMockResult()
getLastMockResult
in interface MockOperation
public void removeMockResponse(MockResponse mockResponse)
removeMockResponse
in interface MockOperation
public abstract void removeResponseFromConfig(int index)
public String getDefaultResponse()
public void setDefaultResponse(String defaultResponse)
public String getScript()
MockOperation
getScript
in interface MockOperation
public void setScript(String dispatchPath)
setScript
in interface MockOperation
dispatchPath
- this is a String that might be needed by the dispatch style used in this mock operation.public void setExampleScript()
public MockOperationDispatcher getDispatcher()
public void setDispatcher(MockOperationDispatcher dispatcher)
public String getDispatchStyle()
public MockOperationDispatcher setDispatchStyle(String dispatchStyle)
Copyright © 2019. All Rights Reserved.