|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.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(RemoteException exception)
Creates a remote repository whose methods throw the given exception. |
|
BrokenRemoteRepository(String message)
Creates a remote repository whose methods trow a remote exception with the given message. |
Method Summary | |
---|---|
String |
getDescriptor(String key)
Throws a RemoteException . |
String[] |
getDescriptorKeys()
Throws a RemoteException . |
RemoteSession |
login()
Throws a RemoteException . |
RemoteSession |
login(Credentials credentials)
Throws a RemoteException . |
RemoteSession |
login(Credentials credentials,
String workspace)
Throws a RemoteException . |
RemoteSession |
login(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(RemoteException exception)
exception
- remote exceptionpublic BrokenRemoteRepository(String message)
message
- exception messagepublic BrokenRemoteRepository()
Method Detail |
---|
public String getDescriptor(String key) throws RemoteException
RemoteException
.
getDescriptor
in interface RemoteRepository
key
- ignored
RemoteException
- always thrownpublic String[] getDescriptorKeys() throws RemoteException
RemoteException
.
getDescriptorKeys
in interface RemoteRepository
RemoteException
- always thrownpublic RemoteSession login() throws RemoteException
RemoteException
.
login
in interface RemoteRepository
RemoteException
- always thrownpublic RemoteSession login(String workspace) throws RemoteException
RemoteException
.
login
in interface RemoteRepository
workspace
- ignored
RemoteException
- always thrownpublic RemoteSession login(Credentials credentials) throws RemoteException
RemoteException
.
login
in interface RemoteRepository
credentials
- ignored
RemoteException
- always thrownpublic RemoteSession login(Credentials credentials, String workspace) throws RemoteException
RemoteException
.
login
in interface RemoteRepository
workspace
- ignoredcredentials
- ignored
RemoteException
- always thrown
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |