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 Details

    • RemoteRepositoryWrapper

      public RemoteRepositoryWrapper(org.eclipse.rdf4j.repository.http.HTTPRepository delegate, DriverConfiguration configuration)
  • Method Details

    • setDataDir

      public void setDataDir(File file)
      Specified by:
      setDataDir in interface org.eclipse.rdf4j.repository.Repository
    • getDataDir

      public File getDataDir()
      Specified by:
      getDataDir in interface org.eclipse.rdf4j.repository.Repository
    • init

      public void init() throws org.eclipse.rdf4j.repository.RepositoryException
      Specified by:
      init in interface org.eclipse.rdf4j.repository.Repository
      Throws:
      org.eclipse.rdf4j.repository.RepositoryException
    • isInitialized

      public boolean isInitialized()
      Specified by:
      isInitialized in interface org.eclipse.rdf4j.repository.Repository
    • shutDown

      public void shutDown() throws org.eclipse.rdf4j.repository.RepositoryException
      Specified by:
      shutDown in interface org.eclipse.rdf4j.repository.Repository
      Throws:
      org.eclipse.rdf4j.repository.RepositoryException
    • isWritable

      public boolean isWritable() throws org.eclipse.rdf4j.repository.RepositoryException
      Specified by:
      isWritable in interface org.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 interface org.eclipse.rdf4j.repository.Repository
      Throws:
      org.eclipse.rdf4j.repository.RepositoryException
    • getValueFactory

      public org.eclipse.rdf4j.model.ValueFactory getValueFactory()
      Specified by:
      getValueFactory in interface org.eclipse.rdf4j.repository.Repository
    • unwrap

      public <T> T unwrap(Class<T> cls) throws OntoDriverException
      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 an OntoDriverException is thrown.
      Specified by:
      unwrap in interface Wrapper
      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