Defines a response from an HTTP-based virt.
Modifiers | Name | Description |
---|---|---|
java.lang.String |
MTOM_NABLED_PROPERTY |
Fields inherited from class | Fields |
---|---|
interface GenericMockResponse |
RESPONSE_CONTENT_PROPERTY |
Type Params | Return Type | Name and description |
---|---|---|
|
int |
getAttachmentCount() |
|
Attachment[] |
getAttachments() |
|
java.lang.String |
getContentType() |
|
java.lang.String |
getEncoding() |
|
MockOperation |
getMockOperation() |
|
StringToStringsMap |
getResponseHeaders() Gets HTTP Headers for this response. |
|
int |
getResponseHttpStatus() Gets the HTTP status for this response. |
|
boolean |
isMtomEnabled() |
|
void |
setResponseHeaders(StringToStringsMap headers) Sets ALL the response headers for this mock response. |
|
void |
setResponseHttpStatus(int httpStatus) Sets the HTTP status for this response. |
Methods inherited from class | Name |
---|---|
interface GenericMockResponse |
evaluateScript, execute, getAdditionalContextProperties, getDataSourceName, getMockOperation, getMockResult, getResponseContent, getScript, getScriptHelpUrl, setDataSourceName, setResponseContent, setScript |
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.