org.apache.jackrabbit.rmi.repository
Class URLRemoteRepository
java.lang.Object
org.apache.jackrabbit.commons.AbstractRepository
org.apache.jackrabbit.commons.repository.ProxyRepository
org.apache.jackrabbit.rmi.repository.URLRemoteRepository
- All Implemented Interfaces:
- Repository
public class URLRemoteRepository
- extends ProxyRepository
Proxy for a remote repository accessed via a URL. The configured URL is
dereferenced lazily during each method call. Thus the resource pointed to
by the URL does not need to exist when this class is instantiated. The
resource can also be replaced with another remote repository instance
during the lifetime of an instance of this class.
- Since:
- 1.4
Fields inherited from interface javax.jcr.Repository |
LEVEL_1_SUPPORTED, LEVEL_2_SUPPORTED, OPTION_LOCKING_SUPPORTED, OPTION_OBSERVATION_SUPPORTED, OPTION_QUERY_SQL_SUPPORTED, OPTION_TRANSACTIONS_SUPPORTED, OPTION_VERSIONING_SUPPORTED, QUERY_XPATH_DOC_ORDER, QUERY_XPATH_POS_INDEX, REP_NAME_DESC, REP_VENDOR_DESC, REP_VENDOR_URL_DESC, REP_VERSION_DESC, SPEC_NAME_DESC, SPEC_VERSION_DESC |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
URLRemoteRepository
public URLRemoteRepository(LocalAdapterFactory factory,
URL url)
- Creates a proxy for the remote repository at the given URL.
- Parameters:
factory
- local adapter factoryurl
- URL of the remote repository
URLRemoteRepository
public URLRemoteRepository(URL url)
- Creates a proxy for the remote repository at the given URL.
Uses
JackrabbitClientAdapterFactory
as the default
local adapter factory.
- Parameters:
url
- URL of the remote repository
URLRemoteRepository
public URLRemoteRepository(String url)
throws MalformedURLException
- Creates a proxy for the remote repository at the given URL.
Uses
JackrabbitClientAdapterFactory
as the default
local adapter factory.
- Parameters:
url
- URL of the remote repository
- Throws:
MalformedURLException
- if the given URL is malformed
Copyright © 2004-2008 The Apache Software Foundation. All Rights Reserved.