Interface HttpClientService
-
public interface HttpClientServiceFactory object forHttpClientinstances. It creates aHttpClientinstance for everyHttpClientConfiguration.The
HttpClientwas designed to be stateless and reusable for the sameHttpClientConfiguration.Ideally, the
HttpClientshould not be related to any Cookie Store strategy to be able to send stateless requests.If you need to reuse
HttpClientinstances for a set of requests consider implementing a cache strategy based onHttpClientConfiguration.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description HttpClientgetClient(HttpClientConfiguration configuration)Creates aHttpClientinstance based on theHttpClientConfiguration.
-
-
-
Method Detail
-
getClient
HttpClient getClient(HttpClientConfiguration configuration)
Creates aHttpClientinstance based on theHttpClientConfiguration.- Parameters:
configuration- theHttpClientConfigurationspecifying the desired client.- Returns:
- a newly built
HttpClientbased on theconfiguration.
-
-