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, setPropertiesConfig
addExternalDependencies, 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, setSettings
addPropertyChangeListener, addPropertyChangeListener, fireIndexedPropertyChange, getChildren, getDashboardDbId, getProject, isNotifyPropertyChanged, notifyPropertyChanged, removeModelItemFromConfig, removePropertyChangeListener, removePropertyChangeListener, setDashboardDbId, setNotifyPropertyChanged
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getAdditionalContextProperties, getDataSourceName, setDataSourceName
getChildren, getDescription, getIcon, getId, getName, getParent, getSettings, setName
protected 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.ScriptException
public 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.DispatchException
public 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.MutableTestPropertyHolder
addProperty
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.TestPropertyHolder
addTestPropertyListener
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.TestPropertyHolder
getProperty
in class com.eviware.soapui.impl.wsdl.AbstractTestPropertyHolderWsdlModelItem<com.eviware.soapui.config.CustomResponseConfig>
public String[] getPropertyNames()
getPropertyNames
in interface com.eviware.soapui.model.TestPropertyHolder
getPropertyNames
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.TestPropertyHolder
getPropertyList
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.TestPropertyHolder
getPropertyValue
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.MutableTestPropertyHolder
removeProperty
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.TestPropertyHolder
removeTestPropertyListener
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.TestPropertyHolder
setPropertyValue
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.MutableTestPropertyHolder
renameProperty
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.TestPropertyHolder
getProperties
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.TestPropertyHolder
hasProperty
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.TestPropertyHolder
getPropertyAt
in class com.eviware.soapui.impl.wsdl.AbstractTestPropertyHolderWsdlModelItem<com.eviware.soapui.config.CustomResponseConfig>
public int getPropertyCount()
getPropertyCount
in interface com.eviware.soapui.model.TestPropertyHolder
getPropertyCount
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.MutableTestPropertyHolder
moveProperty
in class com.eviware.soapui.impl.wsdl.AbstractTestPropertyHolderWsdlModelItem<com.eviware.soapui.config.CustomResponseConfig>
public void release()
release
in interface com.eviware.soapui.model.Releasable
release
in class com.eviware.soapui.impl.wsdl.AbstractTestPropertyHolderWsdlModelItem<com.eviware.soapui.config.CustomResponseConfig>
Copyright © 2019. All rights reserved.