Package org.geotools.http
Class AbstractHTTPClientFactory
Object
AbstractHTTPClientFactory
- All Implemented Interfaces:
- HTTPClientFactory
- Direct Known Subclasses:
- DefaultHTTPClientFactory,- MultithreadedHttpClientFactory
Base HTTPClientFactory adding wrapper client's to the desired HTTP Client like for instance LoggingHTTPClient.
- Author:
- Roar Brænden
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionprotected HTTPClientapplyLogging(HTTPClient client, Hints hints) Wraps client with a LoggingHTTPClient if the HTTP_LOGGING hint is set.final booleancanProcess(Hints hints, List<Class<? extends HTTPBehavior>> behaviors) Returns true if a given factory have a HTTP_CLIENT given by the hint, or meets the behaviors.Return the HTTPClient classes that this factory will create.abstract HTTPClientcreateClient(List<Class<? extends HTTPBehavior>> behaviors) Create instance of HTTPClient.final HTTPClientcreateClient(Hints hints, List<Class<? extends HTTPBehavior>> behaviors) Called by HTTPFactoryFinder to create clientprotected HTTPClientcreateLogging(HTTPClient client) 
- 
Constructor Details- 
AbstractHTTPClientFactorypublic AbstractHTTPClientFactory()
 
- 
- 
Method Details- 
canProcessReturns true if a given factory have a HTTP_CLIENT given by the hint, or meets the behaviors.- Specified by:
- canProcessin interface- HTTPClientFactory
- Returns:
- Client class
 
- 
clientClassesReturn the HTTPClient classes that this factory will create.- Returns:
 
- 
createClientCreate instance of HTTPClient. Behaviors should be used if factory creates different client's. Otherwise it's excessive to use.- Specified by:
- createClientin interface- HTTPClientFactory
- Returns:
- default http client
 
- 
createClientDescription copied from interface:HTTPClientFactoryCalled by HTTPFactoryFinder to create clientTakes care of any delegation - Specified by:
- createClientin interface- HTTPClientFactory
- Parameters:
- hints- Merged with system defaults
- Returns:
 
- 
applyLoggingWraps client with a LoggingHTTPClient if the HTTP_LOGGING hint is set.- Parameters:
- client-
- hints-
- Returns:
 
- 
createLogging
 
-