use of com.openmeap.http.HttpResponseImpl in project OpenMEAP by OpenMEAP.
the class MockHttpRequestExecuter method putTogetherResponse.
private HttpResponse putTogetherResponse() throws HttpRequestException {
try {
HttpResponseImpl response = new HttpResponseImpl();
response.setContentLength(responseText.length());
response.setStatusCode(responseCode);
response.setResponseBody(new ByteArrayInputStream(responseText.getBytes()));
return response;
} catch (Exception e) {
throw new HttpRequestException(e);
}
}
Aggregations