Package org.eclipse.sw360.http
Interface HttpClientFactory
-
- All Known Implementing Classes:
HttpClientFactoryImpl
public interface HttpClientFactoryDefinition of an interface that allows the creation of an
HttpClientobject.This interface defines a factory method that can be used to create new, fully configured instances of
HttpClient. The new instances are created based on a configuration object.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description HttpClientnewHttpClient(HttpClientConfig config)Creates a new instance ofHttpClientand configures it according to the passed in configuration object.HttpClientnewHttpClientAlt(HttpClientConfig config)Creates a new instance ofHttpClientand configures it according to the passed in configuration object.
-
-
-
Method Detail
-
newHttpClient
HttpClient newHttpClient(HttpClientConfig config)
Creates a new instance ofHttpClientand configures it according to the passed in configuration object.- Parameters:
config- the configuration for the new client- Returns:
- the new
HttpClientinstance
-
newHttpClientAlt
HttpClient newHttpClientAlt(HttpClientConfig config)
Creates a new instance ofHttpClientand configures it according to the passed in configuration object.- Parameters:
config- the configuration for the new(native java) client- Returns:
- the new
HttpClientinstance
-
-