Dummy remote repository instance that throws a RemoteException
whenever any method is invoked. Used as a sentinel object by the
SafeClientRepository
class.
@Deprecated public class BrokenRemoteRepository extends Object implements RemoteRepository
Constructor and Description |
---|
BrokenRemoteRepository()
Deprecated.
Creates a remote repository whose methods throw a remote exception.
|
BrokenRemoteRepository(RemoteException exception)
Deprecated.
Creates a remote repository whose methods throw the given
exception.
|
BrokenRemoteRepository(String message)
Deprecated.
Creates a remote repository whose methods trow a remote
exception with the given message.
|
Modifier and Type | Method and Description |
---|---|
String |
getDescriptor(String key)
Deprecated.
Throws a
RemoteException . |
String[] |
getDescriptorKeys()
Deprecated.
Throws a
RemoteException . |
Value |
getDescriptorValue(String key)
Deprecated.
Throws a
RemoteException . |
Value[] |
getDescriptorValues(String key)
Deprecated.
Throws a
RemoteException . |
boolean |
isSingleValueDescriptor(String key)
Deprecated.
Throws a
RemoteException . |
boolean |
isStandardDescriptor(String key)
Deprecated.
Throws a
RemoteException . |
RemoteSession |
login()
Deprecated.
Throws a
RemoteException . |
RemoteSession |
login(Credentials credentials)
Deprecated.
Throws a
RemoteException . |
RemoteSession |
login(Credentials credentials,
String workspace)
Deprecated.
Throws a
RemoteException . |
RemoteSession |
login(String workspace)
Deprecated.
Throws a
RemoteException . |
public BrokenRemoteRepository(RemoteException exception)
exception
- remote exceptionpublic BrokenRemoteRepository(String message)
message
- exception messagepublic BrokenRemoteRepository()
public String getDescriptor(String key) throws RemoteException
RemoteException
.getDescriptor
in interface RemoteRepository
key
- ignoredRemoteException
- 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
- ignoredRemoteException
- always thrownpublic RemoteSession login(Credentials credentials) throws RemoteException
RemoteException
.login
in interface RemoteRepository
credentials
- ignoredRemoteException
- always thrownpublic RemoteSession login(Credentials credentials, String workspace) throws RemoteException
RemoteException
.login
in interface RemoteRepository
workspace
- ignoredcredentials
- ignoredRemoteException
- always thrownpublic Value getDescriptorValue(String key) throws RemoteException
RemoteException
.getDescriptorValue
in interface RemoteRepository
key
- ignoredRemoteException
- always thrownpublic Value[] getDescriptorValues(String key) throws RemoteException
RemoteException
.getDescriptorValues
in interface RemoteRepository
key
- ignoredRemoteException
- always thrownpublic boolean isSingleValueDescriptor(String key) throws RemoteException
RemoteException
.isSingleValueDescriptor
in interface RemoteRepository
key
- ignoredRemoteException
- always thrownpublic boolean isStandardDescriptor(String key) throws RemoteException
RemoteException
.isStandardDescriptor
in interface RemoteRepository
key
- ignoredRemoteException
- always thrownCopyright © 2004–2024 The Apache Software Foundation. All rights reserved.