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 HTTPClientFactory
protected abstract List<Class<?>> clientClasses()
public abstract HTTPClient createClient(List<Class<? extends HTTPBehavior>> behaviors)
createClient
in interface HTTPClientFactory
public final HTTPClient createClient(Hints hints, List<Class<? extends HTTPBehavior>> behaviors)
HTTPClientFactory
Takes care of any delegation
createClient
in interface HTTPClientFactory
hints
- Merged with system defaultsprotected HTTPClient applyLogging(HTTPClient client, Hints hints)
client
- hints
- protected HTTPClient createLogging(HTTPClient client)
Copyright © 1996–2023 Geotools. All rights reserved.