Package org.geotools.http
Class DefaultHTTPClientFactory
- Object
-
- AbstractHTTPClientFactory
-
- DefaultHTTPClientFactory
-
- All Implemented Interfaces:
HTTPClientFactory
public class DefaultHTTPClientFactory extends AbstractHTTPClientFactory
Default factory for generating HTTP client's. Will deliver a SimpleHttpClient.- Author:
- Roar Brænden
-
-
Constructor Summary
Constructors Constructor Description DefaultHTTPClientFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected List<Class<?>>clientClasses()Return the HTTPClient classes that this factory will create.HTTPClientcreateClient(List<Class<? extends HTTPBehavior>> behaviors)Create instance of HTTPClient.-
Methods inherited from class AbstractHTTPClientFactory
applyLogging, canProcess, createClient, createLogging
-
-
-
-
Method Detail
-
clientClasses
protected List<Class<?>> clientClasses()
Description copied from class:AbstractHTTPClientFactoryReturn the HTTPClient classes that this factory will create.- Specified by:
clientClassesin classAbstractHTTPClientFactory- Returns:
-
createClient
public final HTTPClient createClient(List<Class<? extends HTTPBehavior>> behaviors)
Description copied from class:AbstractHTTPClientFactoryCreate instance of HTTPClient. Behaviors should be used if factory creates different client's. Otherwise it's excessive to use.- Specified by:
createClientin interfaceHTTPClientFactory- Specified by:
createClientin classAbstractHTTPClientFactory- Returns:
- default http client
-
-