public class BrokenRemoteRepository extends Object implements RemoteRepository
RemoteException
whenever any method is invoked. Used as a sentinel object by the
SafeClientRepository
class.Constructor and Description |
---|
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.
|
Modifier and Type | Method and Description |
---|---|
String |
getDescriptor(String key)
Throws a
RemoteException . |
String[] |
getDescriptorKeys()
Throws a
RemoteException . |
Value |
getDescriptorValue(String key)
Throws a
RemoteException . |
Value[] |
getDescriptorValues(String key)
Throws a
RemoteException . |
boolean |
isSingleValueDescriptor(String key)
Throws a
RemoteException . |
boolean |
isStandardDescriptor(String key)
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 . |
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–2021 The Apache Software Foundation. All rights reserved.