return createResponse(request, mockResponse);
}
protected BaseClientResponse createResponse(ClientRequest request, final MockHttpResponse mockResponse)
{
BaseClientResponseStreamFactory streamFactory = createStreamFactory(mockResponse);
BaseClientResponse response = new BaseClientResponse(streamFactory, this);
response.setStatus(mockResponse.getStatus());
setHeaders(mockResponse, response);
response.setProviderFactory(request.getProviderFactory());
return response;