|
||||||||||
| 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()
|
Value |
getDescriptorValue(String key)
|
Value[] |
getDescriptorValues(String key)
|
protected abstract RemoteRepository |
getRemoteRepository()
Abstract factory class for getting the remote repository. |
boolean |
isSingleValueDescriptor(String key)
|
boolean |
isStandardDescriptor(String key)
|
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 factory| Method Detail |
|---|
protected abstract RemoteRepository getRemoteRepository()
throws RemoteException
RemoteException - if the remote repository could not be accessedpublic String getDescriptor(String name)
getDescriptor in interface Repositorypublic String[] getDescriptorKeys()
getDescriptorKeys in interface Repository
public Session login(Credentials credentials,
String workspace)
throws RepositoryException
login in interface RepositoryRepositoryException
public Session login(String workspace)
throws RepositoryException
login in interface RepositoryRepositoryException
public Session login(Credentials credentials)
throws RepositoryException
login in interface RepositoryRepositoryException
public Session login()
throws RepositoryException
login in interface RepositoryRepositoryExceptionpublic Value getDescriptorValue(String key)
getDescriptorValue in interface Repositorypublic Value[] getDescriptorValues(String key)
getDescriptorValues in interface Repositorypublic boolean isSingleValueDescriptor(String key)
isSingleValueDescriptor in interface Repositorypublic boolean isStandardDescriptor(String key)
isStandardDescriptor in interface Repository
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||