Package org.geotools.http
Interface HTTPClientFactory
- All Known Implementing Classes:
AbstractHTTPClientFactory
,DefaultHTTPClientFactory
,MultithreadedHttpClientFactory
public interface HTTPClientFactory
Factory class to create a HTTP client. Default implementation is within library gt-http.
- Author:
- Roar Brænden
-
Method Summary
Modifier and TypeMethodDescriptionboolean
canProcess
(Hints hints, List<Class<? extends HTTPBehavior>> behaviors) Method used to check if client in Hints can be createdcreateClient
(List<Class<? extends HTTPBehavior>> behaviors) Method called to create the clientcreateClient
(Hints hints, List<Class<? extends HTTPBehavior>> behaviors) Called by HTTPFactoryFinder to create client
-
Method Details
-
canProcess
Method used to check if client in Hints can be created- Returns:
- Client class
-
createClient
Method called to create the client- Returns:
- default http client
-
createClient
Called by HTTPFactoryFinder to create clientTakes care of any delegation
- Parameters:
hints
- Merged with system defaults- Returns:
-