use of com.mercedesbenz.sechub.sarif.model.WebResponse in project sechub by mercedes-benz.
the class SarifV1JSONImporter method handleWebResponse.
private void handleWebResponse(Result result, SerecoWeb serecoWeb) {
SerecoWebResponse serecoReponse = serecoWeb.getResponse();
WebResponse sarifWebResponse = result.getWebResponse();
serecoReponse.setProtocol(sarifWebResponse.getProtocol());
serecoReponse.setVersion(sarifWebResponse.getVersion());
serecoReponse.setReasonPhrase(sarifWebResponse.getReasonPhrase());
serecoReponse.setStatusCode(sarifWebResponse.getStatusCode());
serecoReponse.setNoResponseReceived(sarifWebResponse.isNoResponseReceived());
serecoReponse.getHeaders().putAll(sarifWebResponse.getHeaders());
/* body */
SerecoWebBody serecoWebResponseBody = serecoReponse.getBody();
com.mercedesbenz.sechub.sarif.model.Body sarifWebResponseBody = sarifWebResponse.getBody();
serecoWebResponseBody.setText(sarifWebResponseBody.getText());
serecoWebResponseBody.setBinary(sarifWebResponseBody.getBinary());
}
Aggregations