Interface HttpClientSessionManager
- All Known Implementing Classes:
SharedHttpClientSessionManager
public interface HttpClientSessionManager
Manager for remote HTTP sessions using a
RDF4JHttpClient.- Author:
- James Leigh
-
Method Summary
Modifier and TypeMethodDescriptioncreateRDF4JProtocolSession(String serverURL) Creates a new session to the remote RDF4J REST API.createSPARQLProtocolSession(String queryEndpointUrl, String updateEndpointUrl) Creates a new SPARQL Protocol session to the remote SPARQL endpoint.voidsetHttpClient(RDF4JHttpClient client) Assign anRDF4JHttpClientthat this session manager should use.voidshutDown()Closes any remaining connections and threads used by the sessions created by this object.
-
Method Details
-
getHttpClient
RDF4JHttpClient getHttpClient()- Returns:
- Returns the httpClient.
-
setHttpClient
Assign anRDF4JHttpClientthat this session manager should use.- Parameters:
client- the client to use.
-
createSPARQLProtocolSession
SPARQLProtocolSession createSPARQLProtocolSession(String queryEndpointUrl, String updateEndpointUrl) Creates a new SPARQL Protocol session to the remote SPARQL endpoint. -
createRDF4JProtocolSession
Creates a new session to the remote RDF4J REST API. -
shutDown
void shutDown()Closes any remaining connections and threads used by the sessions created by this object.
-