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_COMPRESSION
MTOM_NABLED_PROPERTY, RESPONSE_CONTENT_PROPERTY
DESCRIPTION_PROPERTY, ICON_PROPERTY, LABEL_PROPERTY, NAME_PROPERTY
ATTACHMENTS_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, writeResponse
addExternalDependencies, afterLoad, dependsOn, getConfig, getDescription, getExternalDependencies, getId, getName, getParent, getSettings, getWsdlModelItemById, getWsdlModelItemByName, resolve, setDescription, setIcon, setName, setSettings
addPropertyChangeListener, addPropertyChangeListener, fireIndexedPropertyChange, fireIndexedPropertyChange, fireIndexedPropertyChange, getChildren, getProject, notifyPropertyChanged, notifyPropertyChanged, notifyPropertyChanged, notifyPropertyChanged, removePropertyChangeListener, removePropertyChangeListener
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getChildren, getDescription, getId, getName, getParent, getProject, getSettings
addPropertyChangeListener, addPropertyChangeListener, removePropertyChangeListener, removePropertyChangeListener
protected 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 AttachmentContainer
getAttachments
in interface MockResponse
public ImageIcon getIcon()
getIcon
in interface ModelItem
getIcon
in class AbstractWsdlModelItem<MockResponseConfig>
public WsdlMockOperation getMockOperation()
getMockOperation
in interface MockResponse
public String getScriptHelpUrl()
getScriptHelpUrl
in interface MockResponse
public MessagePart[] getRequestParts()
public MessagePart[] getResponseParts()
public Attachment attachFile(File file, boolean cache) throws IOException
attachFile
in interface MutableAttachmentContainer
IOException
public int getAttachmentCount()
getAttachmentCount
in interface AttachmentContainer
getAttachmentCount
in interface MockResponse
public WsdlAttachment getAttachmentAt(int index)
getAttachmentAt
in interface AttachmentContainer
public void removeAttachment(Attachment attachment)
removeAttachment
in interface MutableAttachmentContainer
public HttpAttachmentPart[] getDefinedAttachmentParts()
getDefinedAttachmentParts
in interface AttachmentContainer
public HttpAttachmentPart getAttachmentPart(String partName)
getAttachmentPart
in interface AttachmentContainer
public Attachment[] getAttachmentsForPart(String partName)
getAttachmentsForPart
in interface AttachmentContainer
public String getContentType()
getContentType
in interface MockResponse
public boolean isMtomEnabled()
WsdlAttachmentContainer
isMtomEnabled
in interface WsdlAttachmentContainer
isMtomEnabled
in interface MockResponse
public 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>
IOException
org.apache.ws.security.WSSecurityException
public 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 AttachmentContainer
public 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 MockResponse
setResponseContent
in class AbstractMockResponse<MockResponseConfig>
public boolean isRemoveEmptyContent()
public void setRemoveEmptyContent(boolean removeEmptyContent)
public boolean isEncodeAttachments()
isEncodeAttachments
in interface WsdlAttachmentContainer
public void setEncodeAttachments(boolean encodeAttachments)
public boolean isStripWhitespaces()
isStripWhitespaces
in class AbstractMockResponse<MockResponseConfig>
public void setStripWhitespaces(boolean stripWhitespaces)
public boolean isInlineFilesEnabled()
isInlineFilesEnabled
in interface WsdlAttachmentContainer
public void setInlineFilesEnabled(boolean inlineFilesEnabled)
public void beforeSave()
beforeSave
in class AbstractWsdlModelItem<MockResponseConfig>
public void addAttachmentsChangeListener(PropertyChangeListener listener)
addAttachmentsChangeListener
in interface AttachmentContainer
public boolean isReadOnly()
public void removeAttachmentsChangeListener(PropertyChangeListener listener)
removeAttachmentsChangeListener
in interface AttachmentContainer
public SoapVersion getSoapVersion()
public PropertyExpansion[] getPropertyExpansions()
getPropertyExpansions
in interface PropertyExpansionContainer
public void addWsaPropertyExpansions(List<PropertyExpansion> result, WsaConfig wsaConfig, ModelItem modelItem)
public String getOutgoingWss()
public void setOutgoingWss(String outgoingWss)
public String getPropertiesLabel()
getPropertiesLabel
in interface TestPropertyHolder
public Attachment.AttachmentEncoding getAttachmentEncoding(String partName)
getAttachmentEncoding
in interface WsdlAttachmentContainer
public WsaConfig getWsaConfig()
getWsaConfig
in interface WsaContainer
public boolean isWsAddressing()
public void setWsAddressing(boolean wsAddressing)
public boolean isWsaEnabled()
isWsaEnabled
in interface WsaContainer
public void setWsaEnabled(boolean arg0)
setWsaEnabled
in interface WsaContainer
public WsdlOperation getOperation()
getOperation
in interface WsaContainer
public void setOperation(WsdlOperation operation)
setOperation
in interface WsaContainer
protected String mockresultProperty()
mockresultProperty
in class AbstractMockResponse<MockResponseConfig>
Copyright © 2019. All Rights Reserved.