Class RemoteRepositoryWrapper
java.lang.Object
cz.cvut.kbss.ontodriver.rdf4j.connector.init.RemoteRepositoryWrapper
- All Implemented Interfaces:
Wrapper
,org.eclipse.rdf4j.repository.Repository
public class RemoteRepositoryWrapper
extends Object
implements org.eclipse.rdf4j.repository.Repository, Wrapper
Wrapper for RDF4J
HTTPRepository
allowing to set custom HttpClient
for it to use.-
Constructor Summary
ConstructorsConstructorDescriptionRemoteRepositoryWrapper
(org.eclipse.rdf4j.repository.http.HTTPRepository delegate, DriverConfiguration configuration) -
Method Summary
Modifier and TypeMethodDescriptionorg.eclipse.rdf4j.repository.RepositoryConnection
org.eclipse.rdf4j.model.ValueFactory
void
init()
boolean
boolean
void
setDataDir
(File file) void
shutDown()
<T> T
Returns an object that implements the given interface to allow access to non-standard methods, or standard methods not exposed by the proxy.
-
Constructor Details
-
RemoteRepositoryWrapper
public RemoteRepositoryWrapper(org.eclipse.rdf4j.repository.http.HTTPRepository delegate, DriverConfiguration configuration)
-
-
Method Details
-
setDataDir
- Specified by:
setDataDir
in interfaceorg.eclipse.rdf4j.repository.Repository
-
getDataDir
- Specified by:
getDataDir
in interfaceorg.eclipse.rdf4j.repository.Repository
-
init
public void init() throws org.eclipse.rdf4j.repository.RepositoryException- Specified by:
init
in interfaceorg.eclipse.rdf4j.repository.Repository
- Throws:
org.eclipse.rdf4j.repository.RepositoryException
-
isInitialized
public boolean isInitialized()- Specified by:
isInitialized
in interfaceorg.eclipse.rdf4j.repository.Repository
-
shutDown
public void shutDown() throws org.eclipse.rdf4j.repository.RepositoryException- Specified by:
shutDown
in interfaceorg.eclipse.rdf4j.repository.Repository
- Throws:
org.eclipse.rdf4j.repository.RepositoryException
-
isWritable
public boolean isWritable() throws org.eclipse.rdf4j.repository.RepositoryException- Specified by:
isWritable
in interfaceorg.eclipse.rdf4j.repository.Repository
- Throws:
org.eclipse.rdf4j.repository.RepositoryException
-
getConnection
public org.eclipse.rdf4j.repository.RepositoryConnection getConnection() throws org.eclipse.rdf4j.repository.RepositoryException- Specified by:
getConnection
in interfaceorg.eclipse.rdf4j.repository.Repository
- Throws:
org.eclipse.rdf4j.repository.RepositoryException
-
getValueFactory
public org.eclipse.rdf4j.model.ValueFactory getValueFactory()- Specified by:
getValueFactory
in interfaceorg.eclipse.rdf4j.repository.Repository
-
unwrap
Description copied from interface:Wrapper
Returns an object that implements the given interface to allow access to non-standard methods, or standard methods not exposed by the proxy. If the receiver implements the interface then the result is the receiver or a proxy for the receiver. If the receiver is a wrapper and the wrapped object implements the interface then the result is the wrapped object or a proxy for the wrapped object. Otherwise return the the result of calling unwrap recursively on the wrapped object or a proxy for that result. If the receiver is not a wrapper and does not implement the interface, then anOntoDriverException
is thrown.- Specified by:
unwrap
in interfaceWrapper
- Type Parameters:
T
- The type of the class modeled by this Class object- Parameters:
cls
- The type of the required result- Returns:
- An object implementing the interface
- Throws:
OntoDriverException
- If no matching object is found
-