Package org.geotools.http
Interface HTTPClientFactory
-
- All Known Implementing Classes:
AbstractHTTPClientFactory,DefaultHTTPClientFactory,MultithreadedHttpClientFactory
public interface HTTPClientFactoryFactory 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 booleancanProcess(Hints hints, List<Class<? extends HTTPBehavior>> behaviors)Method used to check if client in Hints can be createdHTTPClientcreateClient(List<Class<? extends HTTPBehavior>> behaviors)Method called to create the clientHTTPClientcreateClient(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:
-
-