public class DistributeBuild extends VoidJFrogService
log, responseType, result, statusCode| Constructor and Description |
|---|
DistributeBuild(java.lang.String buildName,
java.lang.String buildNumber,
org.jfrog.build.api.release.Distribution promotion,
org.jfrog.build.api.util.Log log) |
| Modifier and Type | Method and Description |
|---|---|
org.apache.http.client.methods.HttpRequestBase |
createRequest() |
protected void |
ensureRequirements(org.jfrog.build.client.JFrogHttpClient client) |
protected void |
handleUnsuccessfulResponse(org.apache.http.HttpEntity entity)
Default error handling (E.G.
|
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).
|
encodeUrl, execute, getHeaders, getMapper, getResult, getStatusCode, handleEmptyEntity, setHeaders, setResult, setStatusCode, throwExceptionpublic DistributeBuild(java.lang.String buildName,
java.lang.String buildNumber,
org.jfrog.build.api.release.Distribution promotion,
org.jfrog.build.api.util.Log log)
public org.apache.http.client.methods.HttpRequestBase createRequest()
throws java.io.IOException
createRequest in class JFrogService<java.lang.Void>java.io.IOExceptionprotected void setResponse(java.io.InputStream stream)
throws java.io.IOException
JFrogServicesetResponse in class VoidJFrogServicestream - - Inout stream of the response body.java.io.IOExceptionprotected void ensureRequirements(org.jfrog.build.client.JFrogHttpClient client)
ensureRequirements in class JFrogService<java.lang.Void>protected void handleUnsuccessfulResponse(org.apache.http.HttpEntity entity)
throws java.io.IOException
JFrogServicehandleUnsuccessfulResponse in class JFrogService<java.lang.Void>entity - - The returned failure response.java.io.IOException