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, setSettingsaddPropertyChangeListener, addPropertyChangeListener, fireIndexedPropertyChange, fireIndexedPropertyChange, fireIndexedPropertyChange, getChildren, getProject, notifyPropertyChanged, notifyPropertyChanged, notifyPropertyChanged, notifyPropertyChanged, removePropertyChangeListener, removePropertyChangeListenerclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddNewMockResponse, getMockService, getOperation, getScriptHelpUrlgetChildren, getDescription, getIcon, getId, getName, getParent, getProject, getSettingsaddPropertyChangeListener, addPropertyChangeListener, removePropertyChangeListener, removePropertyChangeListenerreleasepropertyChangepublic 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 MockOperationpublic MockResponseType getMockResponseAt(int index)
getMockResponseAt in interface MockOperationpublic int getMockResponseCount()
getMockResponseCount in interface MockOperationpublic MockResponseType getMockResponseByName(String name)
getMockResponseByName in interface MockOperationpublic MockResult getLastMockResult()
getLastMockResult in interface MockOperationpublic void removeMockResponse(MockResponse mockResponse)
removeMockResponse in interface MockOperationpublic abstract void removeResponseFromConfig(int index)
public String getDefaultResponse()
public void setDefaultResponse(String defaultResponse)
public String getScript()
MockOperationgetScript in interface MockOperationpublic void setScript(String dispatchPath)
setScript in interface MockOperationdispatchPath - 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.