Search in sources :

Example 1 with BlackDuckResponseRequest

use of com.synopsys.integration.blackduck.service.request.BlackDuckResponseRequest in project hub-alert by blackducksoftware.

the class BlackDuckProviderIssueHandler method performRequest.

private void performRequest(HttpUrl httpUrl, HttpMethod httpMethod, IssueRequest issueRequest) throws IntegrationException {
    BlackDuckResponseRequest request = new BlackDuckRequestBuilder().method(httpMethod).bodyContent(new StringBodyContent(gson.toJson(issueRequest), BodyContentConverter.DEFAULT)).buildBlackDuckResponseRequest(httpUrl);
    blackDuckApiClient.execute(request);
}
Also used : StringBodyContent(com.synopsys.integration.rest.body.StringBodyContent) BlackDuckResponseRequest(com.synopsys.integration.blackduck.service.request.BlackDuckResponseRequest) BlackDuckRequestBuilder(com.synopsys.integration.blackduck.http.BlackDuckRequestBuilder)

Aggregations

BlackDuckRequestBuilder (com.synopsys.integration.blackduck.http.BlackDuckRequestBuilder)1 BlackDuckResponseRequest (com.synopsys.integration.blackduck.service.request.BlackDuckResponseRequest)1 StringBodyContent (com.synopsys.integration.rest.body.StringBodyContent)1