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_COMPRESSIONMTOM_NABLED_PROPERTY, RESPONSE_CONTENT_PROPERTYDESCRIPTION_PROPERTY, ICON_PROPERTY, LABEL_PROPERTY, NAME_PROPERTYATTACHMENTS_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, writeResponseaddExternalDependencies, 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, waitgetChildren, getDescription, getIcon, getId, getName, getParent, getProject, getSettingsaddPropertyChangeListener, addPropertyChangeListener, removePropertyChangeListener, removePropertyChangeListenerprotected 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 AttachmentContainergetAttachmentCount in interface MockResponsepublic Attachment getAttachmentAt(int index)
getAttachmentAt in interface AttachmentContainerpublic Attachment[] getAttachmentsForPart(String partName)
getAttachmentsForPart in interface AttachmentContainerpublic MessagePart.AttachmentPart[] getDefinedAttachmentParts()
getDefinedAttachmentParts in interface AttachmentContainerpublic MessagePart.AttachmentPart getAttachmentPart(String partName)
getAttachmentPart in interface AttachmentContainerpublic void addAttachmentsChangeListener(PropertyChangeListener listener)
addAttachmentsChangeListener in interface AttachmentContainerpublic void removeAttachmentsChangeListener(PropertyChangeListener listener)
removeAttachmentsChangeListener in interface AttachmentContainerpublic boolean isMultipartEnabled()
isMultipartEnabled in interface AttachmentContainerpublic boolean isMtomEnabled()
WsdlAttachmentContainerisMtomEnabled in interface WsdlAttachmentContainerisMtomEnabled in interface MockResponsepublic boolean isInlineFilesEnabled()
isInlineFilesEnabled in interface WsdlAttachmentContainerpublic boolean isEncodeAttachments()
isEncodeAttachments in interface WsdlAttachmentContainerpublic Attachment.AttachmentEncoding getAttachmentEncoding(String partName)
getAttachmentEncoding in interface WsdlAttachmentContainerpublic Attachment[] getAttachments()
getAttachments in interface AttachmentContainergetAttachments in interface MockResponsepublic MockOperation getMockOperation()
getMockOperation in interface MockResponsepublic String getScriptHelpUrl()
getScriptHelpUrl in interface MockResponsepublic Attachment attachFile(File file, boolean cache) throws IOException
attachFile in interface MutableAttachmentContainerIOExceptionpublic void removeAttachment(Attachment attachment)
removeAttachment in interface MutableAttachmentContainerpublic PropertyExpansion[] getPropertyExpansions()
getPropertyExpansions in interface PropertyExpansionContainerpublic String getPropertiesLabel()
getPropertiesLabel in interface TestPropertyHolderprotected 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>IOExceptionorg.apache.ws.security.WSSecurityExceptionpublic String getContentType()
getContentType in interface MockResponseprotected 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()
MediaTypegetMediaType in interface MediaTypepublic void setMediaType(String mediaType)
MediaTypesetMediaType in interface MediaTypemediaType - a valid media type.public void setContentType(String contentType)
Copyright © 2019. All Rights Reserved.