|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.jackrabbit.rmi.client.ClientObject
org.apache.jackrabbit.rmi.client.SafeClientRepository
public abstract class SafeClientRepository
A "safe" local adapter for the JCR-RMI
RemoteRepository
interface. This class uses an abstract factory method for loading
(and reloading) the remote repository instance that is made locally
available through the JCR Repository
interface. If the remote
reference breaks (a RemoteException is thrown by a remote call), then
this adapter attempts to reload the remote reference once before failing.
Repository
,
RemoteRepository
Field Summary |
---|
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 |
Constructor Summary | |
---|---|
SafeClientRepository(LocalAdapterFactory factory)
Creates a client adapter for the given remote repository. |
Method Summary | |
---|---|
String |
getDescriptor(String name)
|
String[] |
getDescriptorKeys()
|
protected abstract RemoteRepository |
getRemoteRepository()
Abstract factory class for getting the remote repository. |
javax.jcr.Session |
login()
|
javax.jcr.Session |
login(javax.jcr.Credentials credentials)
|
javax.jcr.Session |
login(javax.jcr.Credentials credentials,
String workspace)
|
javax.jcr.Session |
login(String workspace)
|
Methods inherited from class org.apache.jackrabbit.rmi.client.ClientObject |
---|
getFactory, getItem, getNode, getNodeTypeArray |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SafeClientRepository(LocalAdapterFactory factory)
remote
- remote repositoryfactory
- local adapter factoryMethod Detail |
---|
protected abstract RemoteRepository getRemoteRepository() throws RemoteException
RemoteException
- if the remote repository could not be accessedpublic String getDescriptor(String name)
getDescriptor
in interface javax.jcr.Repository
public String[] getDescriptorKeys()
getDescriptorKeys
in interface javax.jcr.Repository
public javax.jcr.Session login(javax.jcr.Credentials credentials, String workspace) throws javax.jcr.RepositoryException
login
in interface javax.jcr.Repository
javax.jcr.RepositoryException
public javax.jcr.Session login(String workspace) throws javax.jcr.RepositoryException
login
in interface javax.jcr.Repository
javax.jcr.RepositoryException
public javax.jcr.Session login(javax.jcr.Credentials credentials) throws javax.jcr.RepositoryException
login
in interface javax.jcr.Repository
javax.jcr.RepositoryException
public javax.jcr.Session login() throws javax.jcr.RepositoryException
login
in interface javax.jcr.Repository
javax.jcr.RepositoryException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |