Package de.xima.fc.datasource
Interface RemoteDatasourceDownloader.IHttpExecutor
-
- Enclosing class:
- RemoteDatasourceDownloader
public static interface RemoteDatasourceDownloader.IHttpExecutor
Interface for executing HTTP GET requests. This allows for custom implementations, such as using different HTTP clients or mocking the requests in tests.- Since:
- 8.4.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description RemoteDatasourceDownloader.HttpGetResponse
executeGet(String url)
Executes an HTTP GET request to the specified URL.
-
-
-
Method Detail
-
executeGet
RemoteDatasourceDownloader.HttpGetResponse executeGet(String url) throws IOException
Executes an HTTP GET request to the specified URL.- Parameters:
url
- The URL to send the GET request to.- Returns:
- An HttpGetResponse containing the status code and content of the response.
- Throws:
IOException
- If an error occurs while executing the request.
-
-