public class CodeDxRepeatingClient extends CodeDxClient
httpClientBuilder, key, url
Constructor and Description |
---|
CodeDxRepeatingClient(CodeDxClient oldClient,
PrintStream logger) |
Modifier and Type | Method and Description |
---|---|
protected <T> T |
doHttpRequest(org.apache.http.client.methods.HttpRequestBase request,
String path,
boolean isXApi,
Type responseType,
Object requestBody)
Perform an HttpRequest to the given api path, with an optional request body, and parse the response
|
buildBrowsableAnalysisRunUrl, buildLatestFindingsUrl, getCodeDxVersion, getFindingsCount, getFindingsCount, getFindingsGroupedCounts, getJob, getJobStatus, getProject, getProjects, getTriageStatuses, setAnalysisName, startAnalysis
public CodeDxRepeatingClient(CodeDxClient oldClient, PrintStream logger)
protected <T> T doHttpRequest(org.apache.http.client.methods.HttpRequestBase request, String path, boolean isXApi, Type responseType, Object requestBody) throws IOException, CodeDxClientException
CodeDxClient
doHttpRequest
in class CodeDxClient
T
- Type parameter that determines the parsed response typerequest
- Generally a new `HttpGet`, `HttpPost`, or `HttpPut`path
- The relative API path (not including /x/ or /api/)isXApi
- Flag that determines whether the request will prepend /x/ or /api/ to the path (true = /x/)responseType
- A type instance that helps `gson` parse the response bodyrequestBody
- An optional payload that will be converted to json and sent with the requestIOException
- If the underlying IO goes wrongCodeDxClientException
- For non 2xx response codesCopyright © 2004-2017. All Rights Reserved.