/** * Create a FcrepoResponse object from the http response * * @param url the requested URL * @param statusCode the HTTP status code * @param headers a map of all response header names and values * @param body the response body stream */ public FcrepoResponse(final URI url, final int statusCode, final Map<String, List<String>> headers, final InputStream body) { this.setUrl(url); this.setStatusCode(statusCode); this.setHeaders(headers); this.setBody(body); }