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