public class RestMockAction extends AbstractMockOperation<RESTMockActionConfig,RestMockResponse> implements HasHelpUrl
DISPATCH_PATH_PROPERTY, DISPATCH_STYLE_PROPERTY
DESCRIPTION_PROPERTY, ICON_PROPERTY, LABEL_PROPERTY, NAME_PROPERTY
Constructor and Description |
---|
RestMockAction(RestMockService mockService,
RESTMockActionConfig config) |
RestMockAction(RestMockService mockService,
RESTMockActionConfig config,
RestRequest request) |
Modifier and Type | Method and Description |
---|---|
RestMockResponse |
addNewMockResponse(String name) |
RestMockResult |
dispatchRequest(RestMockRequest request) |
List<? extends ModelItem> |
getChildren() |
static String |
getDefaultIcon() |
String |
getHelpUrl() |
static String |
getIconName(RESTMockActionConfig methodConfig) |
RestRequestInterface.HttpMethod |
getMethod() |
RestMockService |
getMockService() |
Operation |
getOperation() |
String |
getResourcePath() |
String |
getScriptHelpUrl() |
void |
propertyChange(PropertyChangeEvent evt) |
void |
removeResponseFromConfig(int index) |
void |
setExampleScript() |
void |
setMethod(RestRequestInterface.HttpMethod method) |
void |
setResource(RestResource resource) |
void |
setResourcePath(String path) |
addMockResponse, getDefaultResponse, getDispatcher, getDispatchStyle, getLastMockResult, getMockResponseAt, getMockResponseByName, getMockResponseCount, getMockResponses, getScript, removeMockResponse, setDefaultResponse, setDispatcher, setDispatchStyle, setScript, setupConfig
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, getProject, notifyPropertyChanged, notifyPropertyChanged, notifyPropertyChanged, notifyPropertyChanged, removePropertyChangeListener, removePropertyChangeListener
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getDescription, getIcon, getId, getName, getParent, getProject, getSettings
addPropertyChangeListener, addPropertyChangeListener, removePropertyChangeListener, removePropertyChangeListener
release
public RestMockAction(RestMockService mockService, RESTMockActionConfig config)
public RestMockAction(RestMockService mockService, RESTMockActionConfig config, RestRequest request)
public static String getIconName(RESTMockActionConfig methodConfig)
public static String getDefaultIcon()
public RestMockService getMockService()
getMockService
in interface MockOperation
public void removeResponseFromConfig(int index)
removeResponseFromConfig
in class AbstractMockOperation<RESTMockActionConfig,RestMockResponse>
public Operation getOperation()
getOperation
in interface MockOperation
public String getScriptHelpUrl()
getScriptHelpUrl
in interface MockOperation
public void propertyChange(PropertyChangeEvent evt)
propertyChange
in interface PropertyChangeListener
public List<? extends ModelItem> getChildren()
getChildren
in interface ModelItem
getChildren
in class AbstractModelItem
public RestMockResponse addNewMockResponse(String name)
addNewMockResponse
in interface MockOperation
public RestMockResult dispatchRequest(RestMockRequest request) throws DispatchException
DispatchException
public String getResourcePath()
public void setMethod(RestRequestInterface.HttpMethod method)
public RestRequestInterface.HttpMethod getMethod()
public void setResourcePath(String path)
public void setResource(RestResource resource)
public void setExampleScript()
setExampleScript
in class AbstractMockOperation<RESTMockActionConfig,RestMockResponse>
public String getHelpUrl()
getHelpUrl
in interface HasHelpUrl
Copyright © 2019. All Rights Reserved.