Interface RDF4JHttpClientFactory
- All Known Implementing Classes:
ApacheHC5RDF4JHttpClientFactory, JdkRDF4JHttpClientFactory
public interface RDF4JHttpClientFactory
SPI for creating
RDF4JHttpClient instances.
Implementations are discovered via ServiceLoader.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptioncreate()Creates a newRDF4JHttpClientwith default configuration.create(RDF4JHttpClientConfig config) Creates a newRDF4JHttpClientwith the given configuration.getName()
-
Method Details
-
getName
String getName()- Returns:
- a short identifier for this factory, e.g.
"jdk"or"apache5".
-
create
RDF4JHttpClient create()Creates a newRDF4JHttpClientwith default configuration.- Returns:
- a new client.
-
create
Creates a newRDF4JHttpClientwith the given configuration.- Parameters:
config- the client configuration.- Returns:
- a new client.
-