public class DownloadHeaders extends DownloadBase<org.apache.http.Header[]>
log, responseType, result, statusCode| Constructor and Description |
|---|
DownloadHeaders(java.lang.String downloadFrom,
java.util.Map<java.lang.String,java.lang.String> headers,
org.jfrog.build.api.util.Log log) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
handleEmptyEntity()
For services with responseType.OBJECT (expected a return value) may
override this function which helps to handle scenarios whereby a response body needs to be read
but do entity is found.
|
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).
|
createRequest, handleUnsuccessfulResponseensureRequirements, execute, getHeaders, getMapper, getResult, getStatusCode, setHeaders, setResult, setStatusCode, throwExceptionpublic DownloadHeaders(java.lang.String downloadFrom,
java.util.Map<java.lang.String,java.lang.String> headers,
org.jfrog.build.api.util.Log log)
protected void setResponse(java.io.InputStream stream)
throws java.io.IOException
JFrogServicesetResponse in class JFrogService<org.apache.http.Header[]>stream - - Inout stream of the response body.java.io.IOExceptionprotected void handleEmptyEntity()
JFrogServicehandleEmptyEntity in class JFrogService<org.apache.http.Header[]>