Package org.geotools.http
Class HTTPClientFinder
Object
FactoryFinder
HTTPClientFinder
Factory finder for getting instances of HTTPClientFactory. All implementations should be registered as a file with
name org.geotools.http.HTTPClientFactory in META_INF/services of their respective jar.
To pick a particular implementation the hint HTTP_CLIENT_FACTORY could be set to the full class name, either in the function call, or by Java property.
- Author:
- Roar Brænden
-
Field Summary
Fields inherited from class FactoryFinder
EMPTY_HINTS
-
Method Summary
Modifier and TypeMethodDescriptionstatic HTTPClient
Get default HTTP client.static HTTPClient
createClient
(Class<? extends HTTPBehavior>... behaviors) Get HTTP client with the given behaviors.static HTTPClient
createClient
(Hints hints) Get a special HTTP client by specifying hint HTTP_CLIENT_FACTORY or HTTP_CLIENTstatic void
reset()
Makes sure a call for getServiceRegistry will do a clean scanMethods inherited from class FactoryFinder
mergeSystemHints
-
Method Details
-
createClient
Get default HTTP client. Can be adjusted by setting property "org.geotools.http.client". -
createClient
Get HTTP client with the given behaviors. -
createClient
Get a special HTTP client by specifying hint HTTP_CLIENT_FACTORY or HTTP_CLIENTMerges with system defaults
- Parameters:
hints
-- Returns:
-
reset
public static void reset()Makes sure a call for getServiceRegistry will do a clean scan
-