Modifiers | Name | Description |
---|---|---|
static java.lang.String |
MTOM_NABLED_PROPERTY |
|
static java.lang.String |
RESPONSE_CONTENT_PROPERTY |
Fields inherited from class | Fields |
---|---|
interface ModelItem |
DESCRIPTION_PROPERTY, ICON_PROPERTY, LABEL_PROPERTY, NAME_PROPERTY |
Type Params | Return Type | Name and description |
---|---|---|
|
void |
evaluateScript(MockRequest request) |
|
MockResult |
execute(MockRequest request, MockResult result) |
|
int |
getAttachmentCount() |
|
Attachment[] |
getAttachments() |
|
java.lang.String |
getContentType() |
|
java.lang.String |
getEncoding() |
|
MockOperation |
getMockOperation() |
|
MockResult |
getMockResult() |
|
java.lang.String |
getResponseContent() |
|
StringToStringsMap |
getResponseHeaders() Gets HTTP Headers for this response. |
|
int |
getResponseHttpStatus() Gets the HTTP status for this response. |
|
java.lang.String |
getScript() |
|
java.lang.String |
getScriptHelpUrl() |
|
boolean |
isMtomEnabled() |
|
void |
setResponseContent(java.lang.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(java.lang.String script) |
Methods inherited from class | Name |
---|---|
interface Releasable |
release |
interface ModelItem |
getChildren, getDescription, getIcon, getId, getName, getParent, getProject, getSettings |
interface TestPropertyHolder |
addTestPropertyListener, getModelItem, getProperties, getPropertiesLabel, getProperty, getPropertyAt, getPropertyCount, getPropertyList, getPropertyNames, getPropertyValue, hasProperty, removeTestPropertyListener, setPropertyValue |
Gets HTTP Headers for this response.
This is the persisted set of headers for a mock response. More headers may be added when doing a real request to a mock service.Gets the HTTP status for this response.
Sets ALL the response headers for this mock response. The headers should be persisted along with this response when it is saved in a project.
headers
- a StringToStringsMap containing all the headers. A current version of persisted headers can be
fetched with getResponseHeaders.Sets the HTTP status for this response. This should be a valid status code as documented in RFC1945 and RFC2616
httpStatus
- a valid status code.