public class WsdlMockResponse extends AbstractMockResponse<MockResponseConfig> implements WsaContainer
| Type | Property and Description | 
|---|---|
| protected String | mockresult | 
| Modifier and Type | Class and Description | 
|---|---|
| static class  | WsdlMockResponse.ResponseHeaderHolder | 
| Modifier and Type | Field and Description | 
|---|---|
| protected List<FileAttachment<WsdlMockResponse>> | attachments | 
| static String | DISABLE_MULTIPART_ATTACHMENTS | 
| static String | ENABLE_INLINE_FILES | 
| static String | ENCODE_ATTACHMENTS | 
| static String | FORCE_MTOM | 
| static String | HEADERS_PROPERTY | 
| static String | ICON_NAME | 
| static String | MOCKRESULT_PROPERTY | 
| static String | OUGOING_WSS | 
| static String | REMOVE_EMPTY_CONTENT | 
| static String | RESPONSE_DELAY_PROPERTY | 
| static String | STRIP_WHITESPACES | 
AUTO_RESPONSE_COMPRESSION, NO_RESPONSE_COMPRESSIONMTOM_NABLED_PROPERTY, RESPONSE_CONTENT_PROPERTYDESCRIPTION_PROPERTY, ICON_PROPERTY, LABEL_PROPERTY, NAME_PROPERTYATTACHMENTS_PROPERTY| Constructor and Description | 
|---|
| WsdlMockResponse(WsdlMockOperation operation,
                MockResponseConfig config) | 
addTestPropertyListener, createMessageXmlObject, evaluateScript, execute, getEncoding, getMockResult, getModelItem, getProperties, getProperty, getPropertyAt, getPropertyCount, getPropertyList, getPropertyNames, getPropertyValue, getResponseCompression, getResponseContent, getResponseHeaders, getResponseHttpStatus, getScript, hasProperty, isEntitizeProperties, prepareMessagePart, release, removeTestPropertyListener, setEncoding, setMockResult, setPropertyValue, setResponseHeaders, setResponseHttpStatus, setScript, writeResponseaddExternalDependencies, afterLoad, dependsOn, getConfig, getDescription, getExternalDependencies, 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, waitgetChildren, getDescription, getId, getName, getParent, getProject, getSettingsaddPropertyChangeListener, addPropertyChangeListener, removePropertyChangeListener, removePropertyChangeListenerprotected String mockresultProperty
mockresultProperty in class AbstractMockResponse<MockResponseConfig>public static final String MOCKRESULT_PROPERTY
public static final String HEADERS_PROPERTY
public static final String DISABLE_MULTIPART_ATTACHMENTS
public static final String FORCE_MTOM
public static final String ENABLE_INLINE_FILES
public static final String RESPONSE_DELAY_PROPERTY
public static final String STRIP_WHITESPACES
public static final String REMOVE_EMPTY_CONTENT
public static final String ENCODE_ATTACHMENTS
public static final String OUGOING_WSS
public static final String ICON_NAME
protected List<FileAttachment<WsdlMockResponse>> attachments
public WsdlMockResponse(WsdlMockOperation operation, MockResponseConfig config)
public void setConfig(MockResponseConfig config)
setConfig in class AbstractMockResponse<MockResponseConfig>public Attachment[] getAttachments()
getAttachments in interface AttachmentContainergetAttachments in interface MockResponsepublic ImageIcon getIcon()
getIcon in interface ModelItemgetIcon in class AbstractWsdlModelItem<MockResponseConfig>public WsdlMockOperation getMockOperation()
getMockOperation in interface MockResponsepublic String getScriptHelpUrl()
getScriptHelpUrl in interface MockResponsepublic MessagePart[] getRequestParts()
public MessagePart[] getResponseParts()
public Attachment attachFile(File file, boolean cache) throws IOException
attachFile in interface MutableAttachmentContainerIOExceptionpublic int getAttachmentCount()
getAttachmentCount in interface AttachmentContainergetAttachmentCount in interface MockResponsepublic WsdlAttachment getAttachmentAt(int index)
getAttachmentAt in interface AttachmentContainerpublic void removeAttachment(Attachment attachment)
removeAttachment in interface MutableAttachmentContainerpublic HttpAttachmentPart[] getDefinedAttachmentParts()
getDefinedAttachmentParts in interface AttachmentContainerpublic HttpAttachmentPart getAttachmentPart(String partName)
getAttachmentPart in interface AttachmentContainerpublic Attachment[] getAttachmentsForPart(String partName)
getAttachmentsForPart in interface AttachmentContainerpublic String getContentType()
getContentType in interface MockResponsepublic boolean isMtomEnabled()
WsdlAttachmentContainerisMtomEnabled in interface WsdlAttachmentContainerisMtomEnabled in interface MockResponsepublic void setMtomEnabled(boolean mtomEnabled)
protected String executeSpecifics(MockRequest request, String responseContent, WsdlMockRunContext context) throws IOException, org.apache.ws.security.WSSecurityException
executeSpecifics in class AbstractMockResponse<MockResponseConfig>IOExceptionorg.apache.ws.security.WSSecurityExceptionpublic Attachment addAttachment(Attachment attachment)
public void setResponseDelay(long delay)
public long getResponseDelay()
getResponseDelay in class AbstractMockResponse<MockResponseConfig>public long getContentLength()
public boolean isMultipartEnabled()
isMultipartEnabled in interface AttachmentContainerpublic void setMultipartEnabled(boolean multipartEnabled)
public void setEntitizeProperties(boolean entitizeProperties)
public boolean isForceMtom()
isForceMtom in class AbstractMockResponse<MockResponseConfig>public void setForceMtom(boolean forceMtom)
protected String removeEmptyContent(String responseContent)
removeEmptyContent in class AbstractMockResponse<MockResponseConfig>public void setResponseContent(String responseContent)
setResponseContent in interface MockResponsesetResponseContent in class AbstractMockResponse<MockResponseConfig>public boolean isRemoveEmptyContent()
public void setRemoveEmptyContent(boolean removeEmptyContent)
public boolean isEncodeAttachments()
isEncodeAttachments in interface WsdlAttachmentContainerpublic void setEncodeAttachments(boolean encodeAttachments)
public boolean isStripWhitespaces()
isStripWhitespaces in class AbstractMockResponse<MockResponseConfig>public void setStripWhitespaces(boolean stripWhitespaces)
public boolean isInlineFilesEnabled()
isInlineFilesEnabled in interface WsdlAttachmentContainerpublic void setInlineFilesEnabled(boolean inlineFilesEnabled)
public void beforeSave()
beforeSave in class AbstractWsdlModelItem<MockResponseConfig>public void addAttachmentsChangeListener(PropertyChangeListener listener)
addAttachmentsChangeListener in interface AttachmentContainerpublic boolean isReadOnly()
public void removeAttachmentsChangeListener(PropertyChangeListener listener)
removeAttachmentsChangeListener in interface AttachmentContainerpublic SoapVersion getSoapVersion()
public PropertyExpansion[] getPropertyExpansions()
getPropertyExpansions in interface PropertyExpansionContainerpublic void addWsaPropertyExpansions(List<PropertyExpansion> result, WsaConfig wsaConfig, ModelItem modelItem)
public String getOutgoingWss()
public void setOutgoingWss(String outgoingWss)
public String getPropertiesLabel()
getPropertiesLabel in interface TestPropertyHolderpublic Attachment.AttachmentEncoding getAttachmentEncoding(String partName)
getAttachmentEncoding in interface WsdlAttachmentContainerpublic WsaConfig getWsaConfig()
getWsaConfig in interface WsaContainerpublic boolean isWsAddressing()
public void setWsAddressing(boolean wsAddressing)
public boolean isWsaEnabled()
isWsaEnabled in interface WsaContainerpublic void setWsaEnabled(boolean arg0)
setWsaEnabled in interface WsaContainerpublic WsdlOperation getOperation()
getOperation in interface WsaContainerpublic void setOperation(WsdlOperation operation)
setOperation in interface WsaContainerprotected String mockresultProperty()
mockresultProperty in class AbstractMockResponse<MockResponseConfig>Copyright © 2019. All Rights Reserved.