public class RestMockService extends AbstractMockService<RestMockAction,RESTMockServiceConfig>
Modifier and Type | Field and Description |
---|---|
static String |
ICON_NAME |
static String |
STRING_ID |
mockOperations, START_SCRIPT_PROPERTY, STOP_SCRIPT_PROPERTY
PATH_PROPERTY, PORT_PROPERTY
DESCRIPTION_PROPERTY, ICON_PROPERTY, LABEL_PROPERTY, NAME_PROPERTY
Constructor and Description |
---|
RestMockService(Project project,
RESTMockServiceConfig config) |
Modifier and Type | Method and Description |
---|---|
RestMockAction |
addEmptyMockAction(RestRequestInterface.HttpMethod method,
String path) |
RestMockAction |
addNewMockAction(RestRequest restRequest) |
MockOperation |
addNewMockOperation(Operation operation) |
List<MockOperation> |
addNewMockOperationsFromResource(RestResource restResource) |
boolean |
canIAddAMockOperation(RestMockAction mockOperation) |
MockDispatcher |
createDispatcher(WsdlMockRunContext mockContext) |
protected MockOperation |
findBestMatchedOperation(String pathToFind,
RestRequestInterface.HttpMethod verbToFind) |
protected MockOperation |
findMatchingOperationWithExactPath(String pathToFind,
RestRequestInterface.HttpMethod verbToFind) |
MockOperation |
findOrCreateNewOperation(RestRequest restRequest) |
List<? extends ModelItem> |
getChildren() |
String |
getHelpUrl() |
String |
getIconName() |
String |
getStringID() |
addExternalDependencies, addMockOperation, addMockRunListener, addMockServiceListener, fireMockOperationAdded, fireMockOperationRemoved, fireMockResponseAdded, fireMockResponseRemoved, fireOnMockResult, getAfterRequestScript, getBindToHostOnly, getDocroot, getHost, getLocalEndpoint, getMockOperationAt, getMockOperationByName, getMockOperationCount, getMockOperationList, getMockOperations, getMockRunListeners, getMockRunner, getMockServiceListeners, getOnRequestScript, getPath, getPort, getProject, getProtocol, getStartScript, getStopScript, isDispatchResponseMessages, release, removeMockOperation, removeMockRunListener, removeMockServiceListener, resolve, runAfterRequestScript, runOnRequestScript, runStartScript, runStopScript, setAfterRequestScript, setBindToHostOnly, setDispatchResponseMessages, setDocroot, setHost, setMockRunner, setOnRequestScript, setPath, setPort, setStartScript, setStopScript, start, start, startIfConfigured
addPropertiesFromFile, addProperty, addTestPropertyListener, getModelItem, getProperties, getPropertiesLabel, getProperty, getPropertyAt, getPropertyCount, getPropertyHolderSupport, getPropertyList, getPropertyNames, getPropertyValue, hasProperty, moveProperty, removeProperty, removeTestPropertyListener, renameProperty, setPropertiesConfig, setPropertyValue
afterLoad, beforeSave, dependsOn, getConfig, getDescription, getExternalDependencies, getIcon, getId, getName, getParent, getSettings, getWsdlModelItemById, getWsdlModelItemByName, setConfig, setDescription, setIcon, setName, setSettings
addPropertyChangeListener, addPropertyChangeListener, fireIndexedPropertyChange, fireIndexedPropertyChange, fireIndexedPropertyChange, notifyPropertyChanged, notifyPropertyChanged, notifyPropertyChanged, notifyPropertyChanged, removePropertyChangeListener, removePropertyChangeListener
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getDescription, getIcon, getId, getName, getParent, getSettings
addPropertyChangeListener, addPropertyChangeListener, removePropertyChangeListener, removePropertyChangeListener
addTestPropertyListener, getModelItem, getProperties, getPropertiesLabel, getProperty, getPropertyAt, getPropertyCount, getPropertyList, getPropertyNames, getPropertyValue, hasProperty, removeTestPropertyListener, setPropertyValue
getName, setIcon
public static final String ICON_NAME
public static final String STRING_ID
public RestMockService(Project project, RESTMockServiceConfig config)
public String getStringID()
public String getIconName()
getIconName
in class AbstractMockService<RestMockAction,RESTMockServiceConfig>
public MockDispatcher createDispatcher(WsdlMockRunContext mockContext)
public List<? extends ModelItem> getChildren()
getChildren
in interface ModelItem
getChildren
in class AbstractModelItem
public RestMockAction addNewMockAction(RestRequest restRequest)
public RestMockAction addEmptyMockAction(RestRequestInterface.HttpMethod method, String path)
public MockOperation findOrCreateNewOperation(RestRequest restRequest)
protected MockOperation findBestMatchedOperation(String pathToFind, RestRequestInterface.HttpMethod verbToFind)
protected MockOperation findMatchingOperationWithExactPath(String pathToFind, RestRequestInterface.HttpMethod verbToFind)
public boolean canIAddAMockOperation(RestMockAction mockOperation)
canIAddAMockOperation
in class AbstractMockService<RestMockAction,RESTMockServiceConfig>
public MockOperation addNewMockOperation(Operation operation)
public List<MockOperation> addNewMockOperationsFromResource(RestResource restResource)
public String getHelpUrl()
Copyright © 2019. All Rights Reserved.