public class GetDistributionStatus extends JFrogService<DistributionStatusResponse>
log, responseType, result, statusCode| Constructor and Description |
|---|
GetDistributionStatus(java.lang.String name,
java.lang.String version,
java.lang.String trackerId,
org.jfrog.build.api.util.Log logger) |
| 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).
|
execute, getHeaders, getMapper, getResult, getStatusCode, handleEmptyEntity, setHeaders, setResult, setStatusCode, throwExceptionpublic GetDistributionStatus(java.lang.String name,
java.lang.String version,
java.lang.String trackerId,
org.jfrog.build.api.util.Log logger)
protected void ensureRequirements(org.jfrog.build.client.JFrogHttpClient client)
throws java.io.IOException
ensureRequirements in class JFrogService<DistributionStatusResponse>java.io.IOExceptionpublic org.apache.http.client.methods.HttpRequestBase createRequest()
throws java.io.IOException
createRequest in class JFrogService<DistributionStatusResponse>java.io.IOExceptionprotected void setResponse(java.io.InputStream stream)
throws java.io.IOException
JFrogServicesetResponse in class JFrogService<DistributionStatusResponse>stream - - Inout stream of the response body.java.io.IOExceptionprotected void handleUnsuccessfulResponse(org.apache.http.HttpEntity entity)
throws java.io.IOException
JFrogServicehandleUnsuccessfulResponse in class JFrogService<DistributionStatusResponse>entity - - The returned failure response.java.io.IOException