Interface HttpClientDependent
- All Known Implementing Classes:
FedXRepository, FedXRepositoryConnection, HTTPRepository, LocalRepositoryManager, NotifyingLocalRepositoryManager, RDF4JProtocolSession, RemoteRepositoryManager, RepositoryManager, SailRepository, SailRepositoryConnection, SharedHttpClientSessionManager, SPARQLConnection, SPARQLProtocolSession, SPARQLRepository, SPARQLServiceResolver, TypeFilteringRepositoryManager
public interface HttpClientDependent
Common interface for objects, such as Repository and RepositoryConnection, that are dependent on
RDF4JHttpClient.- Author:
- James Leigh
-
Method Summary
Modifier and TypeMethodDescriptionRDF4JHttpClientthat has been assigned or has been used by this object.voidsetHttpClient(RDF4JHttpClient client) Assign anRDF4JHttpClientthat this object should use.
-
Method Details
-
getHttpClient
RDF4JHttpClient getHttpClient()RDF4JHttpClientthat has been assigned or has been used by this object. The life cycle might not be or might be tied to this object, depending on whetherRDF4JHttpClientwas passed to or created by this object respectively.- Returns:
- an
RDF4JHttpClientinstance or null
-
setHttpClient
Assign anRDF4JHttpClientthat this object should use. The life cycle of the givenRDF4JHttpClientis independent of this object. Closing or shutting down this object does not have any impact on the given client. Callers must ensure that the given client is properly closed elsewhere.- Parameters:
client-
-