|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.jackrabbit.rmi.client.BrokenRemoteRepository
public class BrokenRemoteRepository
Dummy remote repository instance that throws a RemoteException
whenever any method is invoked. Used as a sentinel object by the
SafeClientRepository
class.
Constructor Summary | |
---|---|
BrokenRemoteRepository()
Creates a remote repository whose methods throw a remote exception. |
|
BrokenRemoteRepository(java.rmi.RemoteException exception)
Creates a remote repository whose methods throw the given exception. |
|
BrokenRemoteRepository(java.lang.String message)
Creates a remote repository whose methods trow a remote exception with the given message. |
Method Summary | |
---|---|
java.lang.String |
getDescriptor(java.lang.String key)
Throws a RemoteException . |
java.lang.String[] |
getDescriptorKeys()
Throws a RemoteException . |
RemoteSession |
login()
Throws a RemoteException . |
RemoteSession |
login(javax.jcr.Credentials credentials)
Throws a RemoteException . |
RemoteSession |
login(javax.jcr.Credentials credentials,
java.lang.String workspace)
Throws a RemoteException . |
RemoteSession |
login(java.lang.String workspace)
Throws a RemoteException . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BrokenRemoteRepository(java.rmi.RemoteException exception)
exception
- remote exceptionpublic BrokenRemoteRepository(java.lang.String message)
message
- exception messagepublic BrokenRemoteRepository()
Method Detail |
---|
public java.lang.String getDescriptor(java.lang.String key) throws java.rmi.RemoteException
RemoteException
.
getDescriptor
in interface RemoteRepository
key
- ignored
java.rmi.RemoteException
- always thrownpublic java.lang.String[] getDescriptorKeys() throws java.rmi.RemoteException
RemoteException
.
getDescriptorKeys
in interface RemoteRepository
java.rmi.RemoteException
- always thrownpublic RemoteSession login() throws java.rmi.RemoteException
RemoteException
.
login
in interface RemoteRepository
java.rmi.RemoteException
- always thrownpublic RemoteSession login(java.lang.String workspace) throws java.rmi.RemoteException
RemoteException
.
login
in interface RemoteRepository
workspace
- ignored
java.rmi.RemoteException
- always thrownpublic RemoteSession login(javax.jcr.Credentials credentials) throws java.rmi.RemoteException
RemoteException
.
login
in interface RemoteRepository
credentials
- ignored
java.rmi.RemoteException
- always thrownpublic RemoteSession login(javax.jcr.Credentials credentials, java.lang.String workspace) throws java.rmi.RemoteException
RemoteException
.
login
in interface RemoteRepository
workspace
- ignoredcredentials
- ignored
java.rmi.RemoteException
- always thrown
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |