Class URLRemoteRepositoryFactory
- java.lang.Object
-
- org.apache.jackrabbit.rmi.repository.AbstractRemoteRepositoryFactory
-
- org.apache.jackrabbit.rmi.repository.URLRemoteRepositoryFactory
-
public class URLRemoteRepositoryFactory extends AbstractRemoteRepositoryFactory
Factory that looks up a remote repository from a given URL.- Since:
- 1.4
-
-
Constructor Summary
Constructors Constructor Description URLRemoteRepositoryFactory(LocalAdapterFactory factory, URL url)
Creates a factory for looking up a remote repository from a URL.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected RemoteRepository
getRemoteRepository()
Looks up and returns a remote repository from the configured URL.-
Methods inherited from class org.apache.jackrabbit.rmi.repository.AbstractRemoteRepositoryFactory
getRepository
-
-
-
-
Constructor Detail
-
URLRemoteRepositoryFactory
public URLRemoteRepositoryFactory(LocalAdapterFactory factory, URL url)
Creates a factory for looking up a remote repository from a URL.- Parameters:
factory
- local adapter factoryurl
- URL or the remote repository
-
-
Method Detail
-
getRemoteRepository
protected RemoteRepository getRemoteRepository() throws RepositoryException
Looks up and returns a remote repository from the configured URL.- Specified by:
getRemoteRepository
in classAbstractRemoteRepositoryFactory
- Returns:
- remote repository reference
- Throws:
RepositoryException
- if the remote repository is not available
-
-