public class ScanBuild extends JFrogService<org.jfrog.build.client.artifactoryXrayResponse.ArtifactoryXrayResponse>
| Modifier and Type | Field and Description |
|---|---|
static int |
XRAY_SCAN_CONNECTION_TIMEOUT_SECS
Expecting \r\n every 30 seconds
|
log, responseType, result, statusCode| Constructor and Description |
|---|
ScanBuild(java.lang.String buildName,
java.lang.String buildNumber,
java.lang.String project,
java.lang.String context,
org.jfrog.build.api.util.Log log) |
| Modifier and Type | Method and Description |
|---|---|
org.apache.http.client.methods.HttpRequestBase |
createRequest() |
org.jfrog.build.client.artifactoryXrayResponse.ArtifactoryXrayResponse |
execute(org.jfrog.build.client.JFrogHttpClient client)
Default execution of a service:
1.
|
protected void |
setResponse(java.io.InputStream stream)
Override this in order to parse the service response body (only for services that expect to have body in the response).
|
ensureRequirements, getHeaders, getMapper, getResult, getStatusCode, handleEmptyEntity, handleUnsuccessfulResponse, setHeaders, setResult, setStatusCode, throwExceptionpublic static final int XRAY_SCAN_CONNECTION_TIMEOUT_SECS
public ScanBuild(java.lang.String buildName,
java.lang.String buildNumber,
java.lang.String project,
java.lang.String context,
org.jfrog.build.api.util.Log log)
public org.apache.http.client.methods.HttpRequestBase createRequest()
throws java.io.IOException
createRequest in class JFrogService<org.jfrog.build.client.artifactoryXrayResponse.ArtifactoryXrayResponse>java.io.IOExceptionprotected void setResponse(java.io.InputStream stream)
throws java.io.IOException
JFrogServicesetResponse in class JFrogService<org.jfrog.build.client.artifactoryXrayResponse.ArtifactoryXrayResponse>stream - - Inout stream of the response body.java.io.IOExceptionpublic org.jfrog.build.client.artifactoryXrayResponse.ArtifactoryXrayResponse execute(org.jfrog.build.client.JFrogHttpClient client)
throws java.io.IOException
JFrogServiceexecute in class JFrogService<org.jfrog.build.client.artifactoryXrayResponse.ArtifactoryXrayResponse>client - - http client for sending the request.java.io.IOException