|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectinfo.aduna.infosource.remote.RemoteRepository
public class RemoteRepository
A RemoteRepository represents Repository residing on an Aduna AutoFocus Server. It wraps a HTTPRepository and offers functionality for maintaining a server URL, repository ID and user credentials and for transforming the URLs obtained from the server.
This class may become partially or completely obsolete in the future, depending on how configuration of a HTTPRepository will take place in the future.
| Constructor Summary | |
|---|---|
RemoteRepository()
|
|
| Method Summary | |
|---|---|
void |
addDefaultTransformers()
Add default transformers. |
void |
addTransformer(int index,
URITransformer transformer)
Adds a URITransformer at the specified index in the list. |
void |
addTransformer(URITransformer transformer)
Adds a URITransformer to the end of the list of URITransformers. |
org.openrdf.repository.RepositoryConnection |
getConnection()
|
File |
getDataDir()
|
String |
getPassword()
Returns the password of this InfoSource. |
String |
getRepositoryID()
Returns the repository ID of the Repository connected to. |
String |
getServerURL()
Returns the server of this InfoSource. |
List<URITransformer> |
getURITransformers()
Returns the list of URITransformers. |
String |
getUsername()
Returns the username of this InfoSource. |
org.openrdf.model.ValueFactory |
getValueFactory()
|
void |
initialize()
|
boolean |
isWritable()
|
org.openrdf.model.URI |
prepareAccess(org.openrdf.model.URI uri)
Returns a URI (typically representing a file of web page) that can be used to view the contents of the specified URI. |
void |
removeTransformer(URITransformer transformer)
Removes the first occurrence of the specified URITransformer from the list of URITransformers. |
void |
setDataDir(File dataDir)
|
void |
setPassword(String password)
Sets the password of this InfoSource. |
void |
setRepositoryID(String id)
Sets the repository ID of this InfoSource. |
void |
setServerURL(String serverURL)
Sets the server URL used by this InfoSource. |
void |
setURITransformers(List<URITransformer> transformers)
Sets the list of URITransformers. |
void |
setUsername(String username)
Sets the username of this InfoSource. |
void |
shutDown()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RemoteRepository()
| Method Detail |
|---|
public void setDataDir(File dataDir)
setDataDir in interface org.openrdf.repository.Repositorypublic File getDataDir()
getDataDir in interface org.openrdf.repository.Repository
public void initialize()
throws org.openrdf.repository.RepositoryException
initialize in interface org.openrdf.repository.Repositoryorg.openrdf.repository.RepositoryExceptionpublic void setServerURL(String serverURL)
public String getServerURL()
public void setUsername(String username)
public String getUsername()
public void setPassword(String password)
public String getPassword()
public void setRepositoryID(String id)
public String getRepositoryID()
public org.openrdf.repository.RepositoryConnection getConnection()
throws org.openrdf.repository.RepositoryException
getConnection in interface org.openrdf.repository.Repositoryorg.openrdf.repository.RepositoryExceptionpublic org.openrdf.model.ValueFactory getValueFactory()
getValueFactory in interface org.openrdf.repository.Repository
public boolean isWritable()
throws org.openrdf.repository.RepositoryException
isWritable in interface org.openrdf.repository.Repositoryorg.openrdf.repository.RepositoryExceptionpublic void shutDown()
shutDown in interface org.openrdf.repository.Repositorypublic void addDefaultTransformers()
public void addTransformer(URITransformer transformer)
public void addTransformer(int index,
URITransformer transformer)
public void removeTransformer(URITransformer transformer)
public List<URITransformer> getURITransformers()
public void setURITransformers(List<URITransformer> transformers)
public org.openrdf.model.URI prepareAccess(org.openrdf.model.URI uri)
InfoSource
prepareAccess in interface InfoSource
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||