public class BaseMockResult<MockRequestType extends MockRequest,MockOperationType extends MockOperation> extends Object implements MockResult
Constructor and Description |
---|
BaseMockResult(MockRequestType request) |
Modifier and Type | Method and Description |
---|---|
void |
addHeader(String name,
String value) |
void |
finish() |
ActionList |
getActions() |
MockOperation |
getMockOperation() |
MockRequestType |
getMockRequest() |
MockResponse |
getMockResponse() |
OutputStream |
getOutputStream() |
byte[] |
getRawResponseData() |
String |
getResponseContent() |
String |
getResponseContentType() |
StringToStringsMap |
getResponseHeaders() |
long |
getTimestamp() |
long |
getTimeTaken() |
boolean |
isCommitted() |
boolean |
isDiscarded() |
void |
setContentType(String contentType) |
void |
setMockOperation(MockOperationType mockOperation) |
void |
setMockResponse(MockResponse mockResponse) |
void |
setRawResponseData(byte[] rawResponseData) |
void |
setResponseContent(String responseContent) |
void |
setTimestamp(long timestamp) |
void |
setTimeTaken(long timeTaken) |
String |
toString() |
void |
writeRawResponseData(byte[] bs) |
public BaseMockResult(MockRequestType request)
public MockRequestType getMockRequest()
getMockRequest
in interface MockResult
public ActionList getActions()
getActions
in interface MockResult
public MockResponse getMockResponse()
getMockResponse
in interface MockResult
public String getResponseContent()
getResponseContent
in interface MockResult
public long getTimeTaken()
getTimeTaken
in interface MockResult
public long getTimestamp()
getTimestamp
in interface MockResult
public void setTimestamp(long timestamp)
public void setTimeTaken(long timeTaken)
public StringToStringsMap getResponseHeaders()
getResponseHeaders
in interface MockResult
public void setMockResponse(MockResponse mockResponse)
public void setResponseContent(String responseContent)
setResponseContent
in interface MockResult
public void finish()
finish
in interface MockResult
public void addHeader(String name, String value)
addHeader
in interface MockResult
public boolean isCommitted()
isCommitted
in interface MockResult
public void setContentType(String contentType)
setContentType
in interface MockResult
public OutputStream getOutputStream() throws IOException
IOException
public boolean isDiscarded()
public byte[] getRawResponseData()
getRawResponseData
in interface MockResult
public void setRawResponseData(byte[] rawResponseData)
public void writeRawResponseData(byte[] bs) throws IOException
writeRawResponseData
in interface MockResult
IOException
public void setMockOperation(MockOperationType mockOperation)
public MockOperation getMockOperation()
getMockOperation
in interface MockResult
public String getResponseContentType()
Copyright © 2019. All Rights Reserved.