|
||||||||||
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 |
---|
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. |
Session |
login()
|
Session |
login(Credentials credentials)
|
Session |
login(Credentials credentials,
String workspace)
|
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 Repository
public String[] getDescriptorKeys()
getDescriptorKeys
in interface Repository
public Session login(Credentials credentials, String workspace) throws RepositoryException
login
in interface Repository
RepositoryException
public Session login(String workspace) throws RepositoryException
login
in interface Repository
RepositoryException
public Session login(Credentials credentials) throws RepositoryException
login
in interface Repository
RepositoryException
public Session login() throws RepositoryException
login
in interface Repository
RepositoryException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |