@Component(value="blImageDownloadHelper") public class ImageDownloadHelper extends Object
| Constructor and Description |
|---|
ImageDownloadHelper()
initialize client configuration
|
| Modifier and Type | Method and Description |
|---|---|
File |
downloadFile(String url,
ImportContext context)
Use Apache Client API instead of traditional nio or stream APIs for greater control and better performance of Https
expects http(s) url of image , download the file at #{adminBulkUploadImagePath} and return for further uploading
|
org.apache.http.impl.client.CloseableHttpClient |
getHttpClient() |
public org.apache.http.impl.client.CloseableHttpClient getHttpClient()
public File downloadFile(String url, ImportContext context)
url - Copyright © 2020. All rights reserved.