Package org.geotools.http.commons
Class MultithreadedHttpClientFactory
Object
AbstractHTTPClientFactory
MultithreadedHttpClientFactory
- All Implemented Interfaces:
HTTPClientFactory
Factory for MultithreadedHttpClient
To use client set Hints.HTTP_CLIENT_FACTORY=MultithreadedHttpClientFactory.class, or Hints.HTTP_CLIENT=MultithreadedHttpClient.class
- Author:
- Roar Brænden
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturn the HTTPClient classes that this factory will create.final HTTPClientcreateClient(List<Class<? extends HTTPBehavior>> behaviors) Create instance of HTTPClient.protected HTTPClientcreateLogging(HTTPClient client) Methods inherited from class AbstractHTTPClientFactory
applyLogging, canProcess, createClient
-
Constructor Details
-
MultithreadedHttpClientFactory
public MultithreadedHttpClientFactory()
-
-
Method Details
-
clientClasses
Description copied from class:AbstractHTTPClientFactoryReturn the HTTPClient classes that this factory will create.- Specified by:
clientClassesin classAbstractHTTPClientFactory- Returns:
-
createClient
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
-
createLogging
- Overrides:
createLoggingin classAbstractHTTPClientFactory
-