Package org.geotools.http
Class HTTPClientFinder
- Object
-
- FactoryFinder
-
- HTTPClientFinder
-
public class HTTPClientFinder extends FactoryFinder
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
All Methods Static Methods Concrete Methods Modifier and Type Method Description static HTTPClient
createClient()
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 scan-
Methods inherited from class FactoryFinder
mergeSystemHints
-
-
-
-
Method Detail
-
createClient
public static HTTPClient createClient()
Get default HTTP client. Can be adjusted by setting property "org.geotools.http.client".
-
createClient
@SafeVarargs public static HTTPClient createClient(Class<? extends HTTPBehavior>... behaviors)
Get HTTP client with the given behaviors.
-
createClient
public static HTTPClient createClient(Hints hints)
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
-
-