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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
canProcess(Hints hints, List<Class<? extends HTTPBehavior>> behaviors)
Method used to check if client in Hints can be createdHTTPClient
createClient(List<Class<? extends HTTPBehavior>> behaviors)
Method called to create the clientHTTPClient
createClient(Hints hints, List<Class<? extends HTTPBehavior>> behaviors)
Called by HTTPFactoryFinder to create client
-
-
-
Method Detail
-
canProcess
boolean canProcess(Hints hints, List<Class<? extends HTTPBehavior>> behaviors)
Method used to check if client in Hints can be created- Returns:
- Client class
-
createClient
HTTPClient createClient(List<Class<? extends HTTPBehavior>> behaviors)
Method called to create the client- Returns:
- default http client
-
createClient
HTTPClient createClient(Hints hints, List<Class<? extends HTTPBehavior>> behaviors)
Called by HTTPFactoryFinder to create clientTakes care of any delegation
- Parameters:
hints
- Merged with system defaults- Returns:
-
-