public abstract class AbstractMockResponse<MockResponseConfigType extends BaseMockResponseConfig> extends AbstractWsdlModelItem<MockResponseConfigType> implements MockResponse, MutableWsdlAttachmentContainer, PropertyExpansionContainer, TestPropertyHolder
| Type | Property and Description | 
|---|---|
| protected abstract String | mockresult | 
| Modifier and Type | Field and Description | 
|---|---|
| static String | AUTO_RESPONSE_COMPRESSION | 
| static String | NO_RESPONSE_COMPRESSION | 
MTOM_NABLED_PROPERTY, RESPONSE_CONTENT_PROPERTYDESCRIPTION_PROPERTY, ICON_PROPERTY, LABEL_PROPERTY, NAME_PROPERTYATTACHMENTS_PROPERTY| Constructor and Description | 
|---|
| AbstractMockResponse(MockResponseConfigType config,
                    MockOperation operation,
                    String icon) | 
addExternalDependencies, afterLoad, beforeSave, dependsOn, getConfig, getDescription, getExternalDependencies, getIcon, getId, getName, getParent, getSettings, getWsdlModelItemById, getWsdlModelItemByName, resolve, 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, waitgetAttachmentCount, getAttachments, getContentType, getMockOperation, getScriptHelpUrl, isMtomEnabledgetChildren, getDescription, getIcon, getId, getName, getParent, getProject, getSettingsaddPropertyChangeListener, addPropertyChangeListener, removePropertyChangeListener, removePropertyChangeListenergetPropertiesLabelgetAttachmentEncoding, isEncodeAttachments, isInlineFilesEnabled, isMtomEnabledattachFile, removeAttachmentaddAttachmentsChangeListener, getAttachmentAt, getAttachmentCount, getAttachmentPart, getAttachments, getAttachmentsForPart, getDefinedAttachmentParts, isMultipartEnabled, removeAttachmentsChangeListenergetPropertyExpansionsprotected abstract String mockresultProperty
public static final String AUTO_RESPONSE_COMPRESSION
public static final String NO_RESPONSE_COMPRESSION
public AbstractMockResponse(MockResponseConfigType config, MockOperation operation, String icon)
public void setConfig(MockResponseConfigType config)
setConfig in class AbstractWsdlModelItem<MockResponseConfigType extends BaseMockResponseConfig>public String getResponseContent()
getResponseContent in interface MockResponsepublic void setResponseContent(String responseContent)
setResponseContent in interface MockResponsepublic StringToStringsMap getResponseHeaders()
MockResponsegetResponseHeaders in interface MockResponsepublic void setResponseHttpStatus(int httpStatus)
MockResponsesetResponseHttpStatus in interface MockResponsehttpStatus - a valid status code.public int getResponseHttpStatus()
MockResponsegetResponseHttpStatus in interface MockResponsepublic String getResponseCompression()
public void setMockResult(MockResult mockResult)
public MockResult getMockResult()
getMockResult in interface MockResponseprotected abstract String mockresultProperty()
public String getScript()
getScript in interface MockResponsepublic void evaluateScript(MockRequest request) throws Exception
evaluateScript in interface MockResponseExceptionpublic void setScript(String script)
setScript in interface MockResponsepublic void release()
release in interface Releasablerelease in class AbstractWsdlModelItem<MockResponseConfigType extends BaseMockResponseConfig>public MockResult execute(MockRequest request, MockResult result) throws DispatchException
execute in interface MockResponseDispatchExceptionpublic String writeResponse(MockResult result, String responseContent) throws Exception
Exceptionpublic boolean prepareMessagePart(javax.mail.internet.MimeMultipart mp,
                                  StringToStringMap contentIds,
                                  MessageXmlPart requestPart)
                           throws Exception
Exceptionpublic MessageXmlObject createMessageXmlObject(String responseContent, WsdlOperation wsdlOperation)
public void setResponseHeaders(StringToStringsMap headers)
MockResponsesetResponseHeaders in interface MockResponseheaders - a StringToStringsMap containing all the headers. A current version of persisted headers can be
                fetched with getResponseHeaders.protected abstract String executeSpecifics(MockRequest request, String responseContent, WsdlMockRunContext context) throws IOException, org.apache.ws.security.WSSecurityException
IOExceptionorg.apache.ws.security.WSSecurityExceptionpublic boolean isEntitizeProperties()
public abstract long getResponseDelay()
public abstract boolean isForceMtom()
public abstract boolean isStripWhitespaces()
public void addTestPropertyListener(TestPropertyListener listener)
addTestPropertyListener in interface TestPropertyHolderpublic ModelItem getModelItem()
AttachmentContainergetModelItem in interface AttachmentContainergetModelItem in interface TestPropertyHolderpublic Map<String,TestProperty> getProperties()
getProperties in interface TestPropertyHolderpublic TestProperty getProperty(String name)
getProperty in interface TestPropertyHolderpublic String[] getPropertyNames()
getPropertyNames in interface TestPropertyHolderpublic String getPropertyValue(String name)
getPropertyValue in interface TestPropertyHolderpublic boolean hasProperty(String name)
hasProperty in interface TestPropertyHolderpublic void removeTestPropertyListener(TestPropertyListener listener)
removeTestPropertyListener in interface TestPropertyHolderpublic void setPropertyValue(String name, String value)
setPropertyValue in interface TestPropertyHolderpublic TestProperty getPropertyAt(int index)
getPropertyAt in interface TestPropertyHolderpublic int getPropertyCount()
getPropertyCount in interface TestPropertyHolderpublic List<TestProperty> getPropertyList()
getPropertyList in interface TestPropertyHolderpublic String getEncoding()
getEncoding in interface MockResponsepublic void setEncoding(String encoding)
Copyright © 2019. All Rights Reserved.