Class JdkRDF4JHttpClientFactory
java.lang.Object
org.eclipse.rdf4j.http.client.jdk.JdkRDF4JHttpClientFactory
- All Implemented Interfaces:
RDF4JHttpClientFactory
RDF4JHttpClientFactory implementation that uses the JDK built-in java.net.http.HttpClient.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreate()Creates a newRDF4JHttpClientwith default configuration.create(RDF4JHttpClientConfig config) Creates a newRDF4JHttpClientwith the given configuration.getName()
-
Constructor Details
-
JdkRDF4JHttpClientFactory
public JdkRDF4JHttpClientFactory()
-
-
Method Details
-
getName
- Specified by:
getNamein interfaceRDF4JHttpClientFactory- Returns:
- a short identifier for this factory, e.g.
"jdk"or"apache5".
-
create
Description copied from interface:RDF4JHttpClientFactoryCreates a newRDF4JHttpClientwith default configuration.- Specified by:
createin interfaceRDF4JHttpClientFactory- Returns:
- a new client.
-
create
Description copied from interface:RDF4JHttpClientFactoryCreates a newRDF4JHttpClientwith the given configuration.- Specified by:
createin interfaceRDF4JHttpClientFactory- Parameters:
config- the client configuration.- Returns:
- a new client.
-