com.eviware.soapui.impl.wsdl.mock
Class WsdlMockResponse
java.lang.Object
com.eviware.soapui.model.support.AbstractModelItem
com.eviware.soapui.impl.wsdl.AbstractWsdlModelItem<com.eviware.soapui.config.MockResponseConfig>
com.eviware.soapui.impl.wsdl.mock.WsdlMockResponse
- All Implemented Interfaces:
- AttachmentContainer, MockResponse, ModelItem, PropertyChangeNotifier
public class WsdlMockResponse
- extends AbstractWsdlModelItem<com.eviware.soapui.config.MockResponseConfig>
- implements MockResponse, AttachmentContainer
Methods inherited from class com.eviware.soapui.impl.wsdl.AbstractWsdlModelItem |
getConfig, getDescription, getName, getParent, getSettings, getWsdlModelItemByName, release, setConfig, setDescription, setIcon, setName, setSettings |
Methods inherited from class com.eviware.soapui.model.support.AbstractModelItem |
addAction, addAction, addPropertyChangeListener, addPropertyChangeListener, getActions, getPanelBuilder, notifyPropertyChanged, notifyPropertyChanged, notifyPropertyChanged, removePropertyChangeListener, removePropertyChangeListener |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MOCKRESULT_PROPERTY
public static final java.lang.String MOCKRESULT_PROPERTY
SCRIPT_PROPERTY
public static final java.lang.String SCRIPT_PROPERTY
HEADERS_PROPERTY
public static final java.lang.String HEADERS_PROPERTY
DISABLE_MULTIPART_ATTACHMENTS
public static final java.lang.String DISABLE_MULTIPART_ATTACHMENTS
attachments
protected java.util.List<FileAttachment> attachments
WsdlMockResponse
public WsdlMockResponse(WsdlMockOperation operation,
com.eviware.soapui.config.MockResponseConfig config)
getAttachments
public Attachment[] getAttachments()
- Specified by:
getAttachments
in interface AttachmentContainer
- Specified by:
getAttachments
in interface MockResponse
getScript
public java.lang.String getScript()
getEncoding
public java.lang.String getEncoding()
- Specified by:
getEncoding
in interface MockResponse
setEncoding
public void setEncoding(java.lang.String encoding)
getResponseContent
public java.lang.String getResponseContent()
- Specified by:
getResponseContent
in interface MockResponse
setResponseContent
public void setResponseContent(java.lang.String responseContent)
getIcon
public javax.swing.ImageIcon getIcon()
- Specified by:
getIcon
in interface ModelItem
- Overrides:
getIcon
in class AbstractWsdlModelItem<com.eviware.soapui.config.MockResponseConfig>
getMockOperation
public WsdlMockOperation getMockOperation()
- Specified by:
getMockOperation
in interface MockResponse
execute
public WsdlMockResult execute(WsdlMockRequest request,
WsdlMockResult result)
throws DispatchException
- Throws:
DispatchException
evaluateScript
public void evaluateScript(WsdlMockRequest request)
setScript
public void setScript(java.lang.String script)
setResponseHeaders
public void setResponseHeaders(StringToStringMap headers)
getResponseHeaders
public StringToStringMap getResponseHeaders()
- Specified by:
getResponseHeaders
in interface MockResponse
attachFile
public Attachment attachFile(java.io.File file,
boolean cache)
- Specified by:
attachFile
in interface AttachmentContainer
getAttachmentCount
public int getAttachmentCount()
- Specified by:
getAttachmentCount
in interface AttachmentContainer
getAttachmentAt
public WsdlAttachment getAttachmentAt(int index)
- Specified by:
getAttachmentAt
in interface AttachmentContainer
removeAttachment
public void removeAttachment(Attachment attachment)
- Specified by:
removeAttachment
in interface AttachmentContainer
getDefinedAttachmentParts
public WsdlAttachmentPart[] getDefinedAttachmentParts()
- Specified by:
getDefinedAttachmentParts
in interface AttachmentContainer
getAttachmentPart
public WsdlAttachmentPart getAttachmentPart(java.lang.String partName)
- Specified by:
getAttachmentPart
in interface AttachmentContainer
getAttachmentsForPart
public Attachment[] getAttachmentsForPart(java.lang.String partName)
- Specified by:
getAttachmentsForPart
in interface AttachmentContainer
isMtomEnabled
public boolean isMtomEnabled()
- Specified by:
isMtomEnabled
in interface AttachmentContainer
- Specified by:
isMtomEnabled
in interface MockResponse
setMtomEnabled
public void setMtomEnabled(boolean mtomEnabled)
addAttachment
public Attachment addAttachment(Attachment attachment)
setMockResult
public void setMockResult(WsdlMockResult mockResult)
getMockResult
public WsdlMockResult getMockResult()
- Specified by:
getMockResult
in interface MockResponse
isMultipartEnabled
public boolean isMultipartEnabled()
- Specified by:
isMultipartEnabled
in interface AttachmentContainer
setMultipartEnabled
public void setMultipartEnabled(boolean multipartEnabled)
Copyright © 2005-2007 eviware.com. All Rights Reserved.