public class RestMockResponse extends AbstractMockResponse<RESTMockResponseConfig> implements MediaType
Type | Property and Description |
---|---|
protected String |
mockresult |
Modifier and Type | Field and Description |
---|---|
static String |
ICON_NAME |
static String |
MOCKRESULT_PROPERTY |
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 |
---|
RestMockResponse(RestMockAction action,
RESTMockResponseConfig 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, setConfig, setEncoding, setMockResult, setPropertyValue, setResponseContent, setResponseHeaders, setResponseHttpStatus, setScript, writeResponse
addExternalDependencies, afterLoad, beforeSave, dependsOn, getConfig, getDescription, getExternalDependencies, getIcon, 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, getIcon, getId, getName, getParent, getProject, getSettings
addPropertyChangeListener, addPropertyChangeListener, removePropertyChangeListener, removePropertyChangeListener
protected String mockresultProperty
mockresultProperty
in class AbstractMockResponse<RESTMockResponseConfig>
public static final String MOCKRESULT_PROPERTY
public static final String ICON_NAME
public RestMockResponse(RestMockAction action, RESTMockResponseConfig config)
public int getAttachmentCount()
getAttachmentCount
in interface AttachmentContainer
getAttachmentCount
in interface MockResponse
public Attachment getAttachmentAt(int index)
getAttachmentAt
in interface AttachmentContainer
public Attachment[] getAttachmentsForPart(String partName)
getAttachmentsForPart
in interface AttachmentContainer
public MessagePart.AttachmentPart[] getDefinedAttachmentParts()
getDefinedAttachmentParts
in interface AttachmentContainer
public MessagePart.AttachmentPart getAttachmentPart(String partName)
getAttachmentPart
in interface AttachmentContainer
public void addAttachmentsChangeListener(PropertyChangeListener listener)
addAttachmentsChangeListener
in interface AttachmentContainer
public void removeAttachmentsChangeListener(PropertyChangeListener listener)
removeAttachmentsChangeListener
in interface AttachmentContainer
public boolean isMultipartEnabled()
isMultipartEnabled
in interface AttachmentContainer
public boolean isMtomEnabled()
WsdlAttachmentContainer
isMtomEnabled
in interface WsdlAttachmentContainer
isMtomEnabled
in interface MockResponse
public boolean isInlineFilesEnabled()
isInlineFilesEnabled
in interface WsdlAttachmentContainer
public boolean isEncodeAttachments()
isEncodeAttachments
in interface WsdlAttachmentContainer
public Attachment.AttachmentEncoding getAttachmentEncoding(String partName)
getAttachmentEncoding
in interface WsdlAttachmentContainer
public Attachment[] getAttachments()
getAttachments
in interface AttachmentContainer
getAttachments
in interface MockResponse
public MockOperation getMockOperation()
getMockOperation
in interface MockResponse
public String getScriptHelpUrl()
getScriptHelpUrl
in interface MockResponse
public Attachment attachFile(File file, boolean cache) throws IOException
attachFile
in interface MutableAttachmentContainer
IOException
public void removeAttachment(Attachment attachment)
removeAttachment
in interface MutableAttachmentContainer
public PropertyExpansion[] getPropertyExpansions()
getPropertyExpansions
in interface PropertyExpansionContainer
public String getPropertiesLabel()
getPropertiesLabel
in interface TestPropertyHolder
protected String mockresultProperty()
mockresultProperty
in class AbstractMockResponse<RESTMockResponseConfig>
protected String executeSpecifics(MockRequest request, String responseContent, WsdlMockRunContext context) throws IOException, org.apache.ws.security.WSSecurityException
executeSpecifics
in class AbstractMockResponse<RESTMockResponseConfig>
IOException
org.apache.ws.security.WSSecurityException
public String getContentType()
getContentType
in interface MockResponse
protected String removeEmptyContent(String responseContent)
removeEmptyContent
in class AbstractMockResponse<RESTMockResponseConfig>
public long getResponseDelay()
getResponseDelay
in class AbstractMockResponse<RESTMockResponseConfig>
public boolean isForceMtom()
isForceMtom
in class AbstractMockResponse<RESTMockResponseConfig>
public boolean isStripWhitespaces()
isStripWhitespaces
in class AbstractMockResponse<RESTMockResponseConfig>
public String getMediaType()
MediaType
getMediaType
in interface MediaType
public void setMediaType(String mediaType)
MediaType
setMediaType
in interface MediaType
mediaType
- a valid media type.public void setContentType(String contentType)
Copyright © 2019. All Rights Reserved.