public abstract class CustomMockResponse<Req extends CustomMockRequest>
extends com.eviware.soapui.impl.wsdl.AbstractTestPropertyHolderWsdlModelItem<com.eviware.soapui.config.CustomResponseConfig>
implements com.eviware.soapui.model.mock.GenericMockResponse<Req>
| Modifier and Type | Field and Description |
|---|---|
protected com.eviware.soapui.impl.wsdl.support.XmlBeansPropertiesTestPropertyHolder |
propertyHolder |
| Constructor and Description |
|---|
CustomMockResponse(com.eviware.soapui.config.CustomResponseConfig config,
CustomMockOperation customMockOperation,
String iconPath) |
| Modifier and Type | Method and Description |
|---|---|
com.eviware.soapui.model.testsuite.TestProperty |
addProperty(String name) |
void |
addTestPropertyListener(com.eviware.soapui.model.testsuite.TestPropertyListener listener) |
void |
evaluateScript(Req request) |
com.eviware.soapui.model.mock.MockResult |
execute(Req request,
com.eviware.soapui.model.mock.MockResult result) |
com.eviware.soapui.config.CustomResponseConfig |
getConfig() |
com.eviware.soapui.model.mock.MockOperation |
getMockOperation() |
com.eviware.soapui.model.mock.MockResult<Req,com.eviware.soapui.model.mock.GenericMockResponse> |
getMockResult() |
Map<String,com.eviware.soapui.model.testsuite.TestProperty> |
getProperties() |
com.eviware.soapui.model.testsuite.TestProperty |
getProperty(String name) |
com.eviware.soapui.model.testsuite.TestProperty |
getPropertyAt(int index) |
int |
getPropertyCount() |
List<com.eviware.soapui.model.testsuite.TestProperty> |
getPropertyList() |
String[] |
getPropertyNames() |
String |
getPropertyValue(String name) |
abstract String |
getResponseContent() |
String |
getScript() |
String |
getScriptHelpUrl() |
boolean |
hasProperty(String name) |
void |
moveProperty(String propertyName,
int targetIndex) |
void |
release() |
com.eviware.soapui.model.testsuite.TestProperty |
removeProperty(String propertyName) |
void |
removeTestPropertyListener(com.eviware.soapui.model.testsuite.TestPropertyListener listener) |
boolean |
renameProperty(String name,
String newName) |
void |
setPropertyValue(String name,
String value) |
abstract void |
setResponseContent(String responseContent) |
void |
setScript(String script) |
addPropertiesFromFile, createNewPropertiesTestPropertyHolder, getModelItem, getProjectProperty, getPropertiesLabel, getPropertyHolderSupport, setPropertiesConfigaddExternalDependencies, afterLoad, afterSave, beforeSave, clearIdCache, createEventBusMessage, dependsOn, getDescription, getExternalAction, getExternalDependencies, getIcon, getId, getName, getParent, getSettings, getWsdlModelItemById, getWsdlModelItemByName, initItemOrder, initWsdlModelItemOrder, resetConfigOnMove, resolve, setConfig, setDescription, setExternalAction, setIcon, setName, setSettingsaddPropertyChangeListener, addPropertyChangeListener, fireIndexedPropertyChange, getChildren, getDashboardDbId, getProject, isNotifyPropertyChanged, notifyPropertyChanged, removeModelItemFromConfig, removePropertyChangeListener, removePropertyChangeListener, setDashboardDbId, setNotifyPropertyChangedclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetAdditionalContextProperties, getDataSourceName, setDataSourceNamegetChildren, getDescription, getIcon, getId, getName, getParent, getSettings, setNameprotected com.eviware.soapui.impl.wsdl.support.XmlBeansPropertiesTestPropertyHolder propertyHolder
public CustomMockResponse(com.eviware.soapui.config.CustomResponseConfig config,
CustomMockOperation customMockOperation,
String iconPath)
public abstract String getResponseContent()
getResponseContent in interface com.eviware.soapui.model.mock.GenericMockResponse<Req extends CustomMockRequest>public abstract void setResponseContent(String responseContent)
setResponseContent in interface com.eviware.soapui.model.mock.GenericMockResponse<Req extends CustomMockRequest>public com.eviware.soapui.config.CustomResponseConfig getConfig()
getConfig in class com.eviware.soapui.impl.wsdl.AbstractWsdlModelItem<com.eviware.soapui.config.CustomResponseConfig>public com.eviware.soapui.model.mock.MockOperation getMockOperation()
getMockOperation in interface com.eviware.soapui.model.mock.GenericMockResponse<Req extends CustomMockRequest>public com.eviware.soapui.model.mock.MockResult<Req,com.eviware.soapui.model.mock.GenericMockResponse> getMockResult()
getMockResult in interface com.eviware.soapui.model.mock.GenericMockResponse<Req extends CustomMockRequest>public void evaluateScript(Req request) throws com.eviware.soapui.support.scripting.ScriptException
evaluateScript in interface com.eviware.soapui.model.mock.GenericMockResponse<Req extends CustomMockRequest>com.eviware.soapui.support.scripting.ScriptExceptionpublic String getScript()
getScript in interface com.eviware.soapui.model.mock.GenericMockResponse<Req extends CustomMockRequest>public void setScript(String script)
setScript in interface com.eviware.soapui.model.mock.GenericMockResponse<Req extends CustomMockRequest>public com.eviware.soapui.model.mock.MockResult execute(Req request, com.eviware.soapui.model.mock.MockResult result) throws com.eviware.soapui.impl.wsdl.mock.DispatchException
execute in interface com.eviware.soapui.model.mock.GenericMockResponse<Req extends CustomMockRequest>com.eviware.soapui.impl.wsdl.mock.DispatchExceptionpublic String getScriptHelpUrl()
getScriptHelpUrl in interface com.eviware.soapui.model.mock.GenericMockResponse<Req extends CustomMockRequest>public com.eviware.soapui.model.testsuite.TestProperty addProperty(String name)
addProperty in interface com.eviware.soapui.impl.wsdl.MutableTestPropertyHolderaddProperty in class com.eviware.soapui.impl.wsdl.AbstractTestPropertyHolderWsdlModelItem<com.eviware.soapui.config.CustomResponseConfig>public void addTestPropertyListener(com.eviware.soapui.model.testsuite.TestPropertyListener listener)
addTestPropertyListener in interface com.eviware.soapui.model.TestPropertyHolderaddTestPropertyListener in class com.eviware.soapui.impl.wsdl.AbstractTestPropertyHolderWsdlModelItem<com.eviware.soapui.config.CustomResponseConfig>public com.eviware.soapui.model.testsuite.TestProperty getProperty(String name)
getProperty in interface com.eviware.soapui.model.TestPropertyHoldergetProperty in class com.eviware.soapui.impl.wsdl.AbstractTestPropertyHolderWsdlModelItem<com.eviware.soapui.config.CustomResponseConfig>public String[] getPropertyNames()
getPropertyNames in interface com.eviware.soapui.model.TestPropertyHoldergetPropertyNames in class com.eviware.soapui.impl.wsdl.AbstractTestPropertyHolderWsdlModelItem<com.eviware.soapui.config.CustomResponseConfig>public List<com.eviware.soapui.model.testsuite.TestProperty> getPropertyList()
getPropertyList in interface com.eviware.soapui.model.TestPropertyHoldergetPropertyList in class com.eviware.soapui.impl.wsdl.AbstractTestPropertyHolderWsdlModelItem<com.eviware.soapui.config.CustomResponseConfig>public String getPropertyValue(String name)
getPropertyValue in interface com.eviware.soapui.model.TestPropertyHoldergetPropertyValue in class com.eviware.soapui.impl.wsdl.AbstractTestPropertyHolderWsdlModelItem<com.eviware.soapui.config.CustomResponseConfig>public com.eviware.soapui.model.testsuite.TestProperty removeProperty(String propertyName)
removeProperty in interface com.eviware.soapui.impl.wsdl.MutableTestPropertyHolderremoveProperty in class com.eviware.soapui.impl.wsdl.AbstractTestPropertyHolderWsdlModelItem<com.eviware.soapui.config.CustomResponseConfig>public void removeTestPropertyListener(com.eviware.soapui.model.testsuite.TestPropertyListener listener)
removeTestPropertyListener in interface com.eviware.soapui.model.TestPropertyHolderremoveTestPropertyListener in class com.eviware.soapui.impl.wsdl.AbstractTestPropertyHolderWsdlModelItem<com.eviware.soapui.config.CustomResponseConfig>public void setPropertyValue(String name, String value)
setPropertyValue in interface com.eviware.soapui.model.TestPropertyHoldersetPropertyValue in class com.eviware.soapui.impl.wsdl.AbstractTestPropertyHolderWsdlModelItem<com.eviware.soapui.config.CustomResponseConfig>public boolean renameProperty(String name, String newName)
renameProperty in interface com.eviware.soapui.impl.wsdl.MutableTestPropertyHolderrenameProperty in class com.eviware.soapui.impl.wsdl.AbstractTestPropertyHolderWsdlModelItem<com.eviware.soapui.config.CustomResponseConfig>public Map<String,com.eviware.soapui.model.testsuite.TestProperty> getProperties()
getProperties in interface com.eviware.soapui.model.TestPropertyHoldergetProperties in class com.eviware.soapui.impl.wsdl.AbstractTestPropertyHolderWsdlModelItem<com.eviware.soapui.config.CustomResponseConfig>public boolean hasProperty(String name)
hasProperty in interface com.eviware.soapui.model.TestPropertyHolderhasProperty in class com.eviware.soapui.impl.wsdl.AbstractTestPropertyHolderWsdlModelItem<com.eviware.soapui.config.CustomResponseConfig>public com.eviware.soapui.model.testsuite.TestProperty getPropertyAt(int index)
getPropertyAt in interface com.eviware.soapui.model.TestPropertyHoldergetPropertyAt in class com.eviware.soapui.impl.wsdl.AbstractTestPropertyHolderWsdlModelItem<com.eviware.soapui.config.CustomResponseConfig>public int getPropertyCount()
getPropertyCount in interface com.eviware.soapui.model.TestPropertyHoldergetPropertyCount in class com.eviware.soapui.impl.wsdl.AbstractTestPropertyHolderWsdlModelItem<com.eviware.soapui.config.CustomResponseConfig>public void moveProperty(String propertyName, int targetIndex)
moveProperty in interface com.eviware.soapui.impl.wsdl.MutableTestPropertyHoldermoveProperty in class com.eviware.soapui.impl.wsdl.AbstractTestPropertyHolderWsdlModelItem<com.eviware.soapui.config.CustomResponseConfig>public void release()
release in interface com.eviware.soapui.model.Releasablerelease in class com.eviware.soapui.impl.wsdl.AbstractTestPropertyHolderWsdlModelItem<com.eviware.soapui.config.CustomResponseConfig>Copyright © 2019. All rights reserved.