|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openrdf.repository.manager.RepositoryManager
org.openrdf.repository.manager.RemoteRepositoryManager
public class RemoteRepositoryManager
A manager for Repositorys that reside on a remote server. This
repository manager allows one to access repositories over HTTP similar to how
local repositories are accessed using the LocalRepositoryManager.
| Field Summary |
|---|
| Fields inherited from class org.openrdf.repository.manager.RepositoryManager |
|---|
logger |
| Constructor Summary | |
|---|---|
RemoteRepositoryManager(String serverURL)
Creates a new RepositoryManager that operates on the specified base directory. |
|
| Method Summary | |
|---|---|
protected void |
cleanUpRepository(String repositoryID)
Clean up a removed repository. |
protected Repository |
createRepository(String id)
Creates and initializes the repository with the specified ID. |
protected Repository |
createSystemRepository()
|
Collection<RepositoryInfo> |
getAllRepositoryInfos(boolean skipSystemRepo)
|
static RemoteRepositoryManager |
getInstance(String serverURL)
Creates an initialized RemoteRepositoryManager with the specified
server URL. |
static RemoteRepositoryManager |
getInstance(String serverURL,
String username,
String password)
Creates an initialized RemoteRepositoryManager with the specified
server URL and credentials. |
URL |
getLocation()
Gets the URL of the remote server, e.g. |
RepositoryInfo |
getRepositoryInfo(String id)
Gets the repository that is known by the specified ID from this manager. |
String |
getServerURL()
Gets the URL of the remote server, e.g. |
void |
setUsernameAndPassword(String username,
String password)
Set the username and password for authenication with the remote server. |
| Methods inherited from class org.openrdf.repository.manager.RepositoryManager |
|---|
addRepositoryConfig, getAllRepositories, getAllRepositoryInfos, getAllUserRepositoryInfos, getInitializedRepositories, getInitializedRepositoryIDs, getNewRepositoryID, getRepository, getRepositoryConfig, getRepositoryIDs, getSystemRepository, hasRepositoryConfig, initialize, refresh, removeRepositoryConfig, shutDown |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RemoteRepositoryManager(String serverURL)
serverURL - The URL of the server.| Method Detail |
|---|
public static RemoteRepositoryManager getInstance(String serverURL)
throws RepositoryException
RemoteRepositoryManager with the specified
server URL.
RepositoryException
public static RemoteRepositoryManager getInstance(String serverURL,
String username,
String password)
throws RepositoryException
RemoteRepositoryManager with the specified
server URL and credentials.
RepositoryException
public void setUsernameAndPassword(String username,
String password)
username - the usernamepassword - the password
protected Repository createSystemRepository()
throws RepositoryException
createSystemRepository in class RepositoryManagerRepositoryException
public URL getLocation()
throws MalformedURLException
getLocation in class RepositoryManagerMalformedURLException - If serverURL cannot be parsedpublic String getServerURL()
protected Repository createRepository(String id)
throws RepositoryConfigException,
RepositoryException
createRepository in class RepositoryManagerid - A repository ID.
RepositoryConfigException - If no repository could be created due to invalid or incomplete
configuration data.
RepositoryException
public RepositoryInfo getRepositoryInfo(String id)
throws RepositoryException
RepositoryManager
getRepositoryInfo in class RepositoryManagerid - A repository ID.
RepositoryException - When not able to retrieve existing configurations
public Collection<RepositoryInfo> getAllRepositoryInfos(boolean skipSystemRepo)
throws RepositoryException
getAllRepositoryInfos in class RepositoryManagerRepositoryException - When not able to retrieve existing configurations
protected void cleanUpRepository(String repositoryID)
throws IOException
RepositoryManager
cleanUpRepository in class RepositoryManagerrepositoryID - the ID of the repository to clean up
IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||