Package com.helger.commons.url
Interface IURLDownloader
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Callback interface to download data from web. Used e.g. for CRL downloads.
- Since:
- 11.2.0
- Author:
- Philip Helger
-
Method Summary
Modifier and TypeMethodDescriptionstatic IURLDownloaderbyte[]downloadURL(String sURL) Download the content of the provided URL
-
Method Details
-
downloadURL
Download the content of the provided URL- Parameters:
sURL- The CRL URL to download. Neithernullnor empty.- Returns:
nullif no payload was returned- Throws:
Exception- In case of error
-
createDefault
- Returns:
- The default URL downloader using
URL.openStream(). Nevernull.
-