public abstract class AbstractHTTPClientFactory extends Object implements HTTPClientFactory
| Constructor and Description |
|---|
AbstractHTTPClientFactory() |
| Modifier and Type | Method and Description |
|---|---|
protected HTTPClient |
applyLogging(HTTPClient client,
Hints hints)
Wraps client with a LoggingHTTPClient if the HTTP_LOGGING hint is set.
|
boolean |
canProcess(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.
|
protected abstract List<Class<?>> |
clientClasses()
Return the HTTPClient classes that this factory will create.
|
HTTPClient |
createClient(Hints hints,
List<Class<? extends HTTPBehavior>> behaviors)
Called by HTTPFactoryFinder to create client
Takes care of any delegation
|
abstract HTTPClient |
createClient(List<Class<? extends HTTPBehavior>> behaviors)
Create instance of HTTPClient.
|
protected HTTPClient |
createLogging(HTTPClient client) |
public final boolean canProcess(Hints hints, List<Class<? extends HTTPBehavior>> behaviors)
canProcess in interface HTTPClientFactoryprotected abstract List<Class<?>> clientClasses()
public abstract HTTPClient createClient(List<Class<? extends HTTPBehavior>> behaviors)
createClient in interface HTTPClientFactorypublic final HTTPClient createClient(Hints hints, List<Class<? extends HTTPBehavior>> behaviors)
HTTPClientFactoryTakes care of any delegation
createClient in interface HTTPClientFactoryhints - Merged with system defaultsprotected HTTPClient applyLogging(HTTPClient client, Hints hints)
client - hints - protected HTTPClient createLogging(HTTPClient client)
Copyright © 1996–2021 Geotools. All rights reserved.