public abstract class DownloadBase<TResult> extends JFrogService<TResult>
log, responseType, result, statusCode| Modifier | Constructor and Description |
|---|---|
protected |
DownloadBase(java.lang.String DownloadPath,
boolean isHead,
java.util.Map<java.lang.String,java.lang.String> headers,
org.jfrog.build.api.util.Log log) |
| Modifier and Type | Method and Description |
|---|---|
org.apache.http.client.methods.HttpRequestBase |
createRequest() |
protected void |
handleUnsuccessfulResponse(org.apache.http.HttpEntity entity)
Default error handling (E.G.
|
encodeUrl, ensureRequirements, execute, getHeaders, getMapper, getResult, getStatusCode, handleEmptyEntity, setHeaders, setResponse, setResult, setStatusCode, throwExceptionprotected DownloadBase(java.lang.String DownloadPath,
boolean isHead,
java.util.Map<java.lang.String,java.lang.String> headers,
org.jfrog.build.api.util.Log log)
public org.apache.http.client.methods.HttpRequestBase createRequest()
throws java.io.IOException
createRequest in class JFrogService<TResult>java.io.IOExceptionprotected void handleUnsuccessfulResponse(org.apache.http.HttpEntity entity)
throws java.io.IOException
JFrogServicehandleUnsuccessfulResponse in class JFrogService<TResult>entity - - The returned failure response.java.io.IOException