public interface MockResponse extends TestModelItem, Releasable
Modifier and Type | Field and Description |
---|---|
static String |
MTOM_NABLED_PROPERTY |
static String |
RESPONSE_CONTENT_PROPERTY |
DESCRIPTION_PROPERTY, ICON_PROPERTY, LABEL_PROPERTY, NAME_PROPERTY
Modifier and Type | Method and Description |
---|---|
void |
evaluateScript(MockRequest request) |
MockResult |
execute(MockRequest request,
MockResult result) |
int |
getAttachmentCount() |
Attachment[] |
getAttachments() |
String |
getContentType() |
String |
getEncoding() |
MockOperation |
getMockOperation() |
MockResult |
getMockResult() |
String |
getResponseContent() |
StringToStringsMap |
getResponseHeaders()
Gets HTTP Headers for this response.
|
int |
getResponseHttpStatus()
Gets the HTTP status for this response.
|
String |
getScript() |
String |
getScriptHelpUrl() |
boolean |
isMtomEnabled() |
void |
setResponseContent(String responseContent) |
void |
setResponseHeaders(StringToStringsMap headers)
Sets ALL the response headers for this mock response.
|
void |
setResponseHttpStatus(int httpStatus)
Sets the HTTP status for this response.
|
void |
setScript(String script) |
getChildren, getDescription, getIcon, getId, getName, getParent, getProject, getSettings
addPropertyChangeListener, addPropertyChangeListener, removePropertyChangeListener, removePropertyChangeListener
addTestPropertyListener, getModelItem, getProperties, getPropertiesLabel, getProperty, getPropertyAt, getPropertyCount, getPropertyList, getPropertyNames, getPropertyValue, hasProperty, removeTestPropertyListener, setPropertyValue
release
static final String RESPONSE_CONTENT_PROPERTY
static final String MTOM_NABLED_PROPERTY
String getResponseContent()
void setResponseContent(String responseContent)
String getContentType()
String getEncoding()
boolean isMtomEnabled()
Attachment[] getAttachments()
int getAttachmentCount()
MockOperation getMockOperation()
StringToStringsMap getResponseHeaders()
void setResponseHeaders(StringToStringsMap headers)
headers
- a StringToStringsMap containing all the headers. A current version of persisted headers can be
fetched with getResponseHeaders.MockResult getMockResult()
void evaluateScript(MockRequest request) throws Exception
Exception
String getScript()
void setScript(String script)
void setResponseHttpStatus(int httpStatus)
httpStatus
- a valid status code.int getResponseHttpStatus()
MockResult execute(MockRequest request, MockResult result) throws DispatchException
DispatchException
String getScriptHelpUrl()
Copyright © 2019. All Rights Reserved.