Package org.geotools.http.commons
Class MultithreadedHttpClientFactory
- Object
-
- AbstractHTTPClientFactory
-
- MultithreadedHttpClientFactory
-
- All Implemented Interfaces:
HTTPClientFactory
public class MultithreadedHttpClientFactory extends AbstractHTTPClientFactory
Factory for MultithreadedHttpClientTo use client set Hints.HTTP_CLIENT_FACTORY=MultithreadedHttpClientFactory.class, or Hints.HTTP_CLIENT=MultithreadedHttpClient.class
- Author:
- Roar Brænden
-
-
Constructor Summary
Constructors Constructor Description MultithreadedHttpClientFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<Class<?>>
clientClasses()
Return the HTTPClient classes that this factory will create.HTTPClient
createClient(List<Class<? extends HTTPBehavior>> behaviors)
Create instance of HTTPClient.protected HTTPClient
createLogging(HTTPClient client)
-
Methods inherited from class AbstractHTTPClientFactory
applyLogging, canProcess, createClient
-
-
-
-
Method Detail
-
clientClasses
public List<Class<?>> clientClasses()
Description copied from class:AbstractHTTPClientFactory
Return the HTTPClient classes that this factory will create.- Specified by:
clientClasses
in classAbstractHTTPClientFactory
- Returns:
-
createClient
public final HTTPClient createClient(List<Class<? extends HTTPBehavior>> behaviors)
Description copied from class:AbstractHTTPClientFactory
Create instance of HTTPClient. Behaviors should be used if factory creates different client's. Otherwise it's excessive to use.- Specified by:
createClient
in interfaceHTTPClientFactory
- Specified by:
createClient
in classAbstractHTTPClientFactory
- Returns:
- default http client
-
createLogging
protected HTTPClient createLogging(HTTPClient client)
- Overrides:
createLogging
in classAbstractHTTPClientFactory
-
-