Package org.apache.jackrabbit.rmi.client
Class BrokenRemoteRepository
- java.lang.Object
-
- org.apache.jackrabbit.rmi.client.BrokenRemoteRepository
-
- All Implemented Interfaces:
Remote
,RemoteRepository
@Deprecated(forRemoval=true) public class BrokenRemoteRepository extends Object implements RemoteRepository
Deprecated, for removal: This API element is subject to removal in a future version.RMI support is deprecated and will be removed in a future version of Jackrabbit; see Jira ticket JCR-4972 for more information.Dummy remote repository instance that throws a
RemoteException
whenever any method is invoked. Used as a sentinel object by theSafeClientRepository
class.
-
-
Constructor Summary
Constructors Constructor Description BrokenRemoteRepository()
Deprecated, for removal: This API element is subject to removal in a future version.Creates a remote repository whose methods throw a remote exception.BrokenRemoteRepository(String message)
Deprecated, for removal: This API element is subject to removal in a future version.Creates a remote repository whose methods trow a remote exception with the given message.BrokenRemoteRepository(RemoteException exception)
Deprecated, for removal: This API element is subject to removal in a future version.Creates a remote repository whose methods throw the given exception.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description String
getDescriptor(String key)
Deprecated, for removal: This API element is subject to removal in a future version.Throws aRemoteException
.String[]
getDescriptorKeys()
Deprecated, for removal: This API element is subject to removal in a future version.Throws aRemoteException
.Value
getDescriptorValue(String key)
Deprecated, for removal: This API element is subject to removal in a future version.Throws aRemoteException
.Value[]
getDescriptorValues(String key)
Deprecated, for removal: This API element is subject to removal in a future version.Throws aRemoteException
.boolean
isSingleValueDescriptor(String key)
Deprecated, for removal: This API element is subject to removal in a future version.Throws aRemoteException
.boolean
isStandardDescriptor(String key)
Deprecated, for removal: This API element is subject to removal in a future version.Throws aRemoteException
.RemoteSession
login()
Deprecated, for removal: This API element is subject to removal in a future version.Throws aRemoteException
.RemoteSession
login(String workspace)
Deprecated, for removal: This API element is subject to removal in a future version.Throws aRemoteException
.RemoteSession
login(Credentials credentials)
Deprecated, for removal: This API element is subject to removal in a future version.Throws aRemoteException
.RemoteSession
login(Credentials credentials, String workspace)
Deprecated, for removal: This API element is subject to removal in a future version.Throws aRemoteException
.
-
-
-
Constructor Detail
-
BrokenRemoteRepository
public BrokenRemoteRepository(RemoteException exception)
Deprecated, for removal: This API element is subject to removal in a future version.Creates a remote repository whose methods throw the given exception.- Parameters:
exception
- remote exception
-
BrokenRemoteRepository
public BrokenRemoteRepository(String message)
Deprecated, for removal: This API element is subject to removal in a future version.Creates a remote repository whose methods trow a remote exception with the given message.- Parameters:
message
- exception message
-
BrokenRemoteRepository
public BrokenRemoteRepository()
Deprecated, for removal: This API element is subject to removal in a future version.Creates a remote repository whose methods throw a remote exception.
-
-
Method Detail
-
getDescriptor
public String getDescriptor(String key) throws RemoteException
Deprecated, for removal: This API element is subject to removal in a future version.Throws aRemoteException
.- Specified by:
getDescriptor
in interfaceRemoteRepository
- Parameters:
key
- ignored- Returns:
- nothing
- Throws:
RemoteException
- always thrown
-
getDescriptorKeys
public String[] getDescriptorKeys() throws RemoteException
Deprecated, for removal: This API element is subject to removal in a future version.Throws aRemoteException
.- Specified by:
getDescriptorKeys
in interfaceRemoteRepository
- Returns:
- nothing
- Throws:
RemoteException
- always thrown
-
login
public RemoteSession login() throws RemoteException
Deprecated, for removal: This API element is subject to removal in a future version.Throws aRemoteException
.- Specified by:
login
in interfaceRemoteRepository
- Returns:
- nothing
- Throws:
RemoteException
- always thrown
-
login
public RemoteSession login(String workspace) throws RemoteException
Deprecated, for removal: This API element is subject to removal in a future version.Throws aRemoteException
.- Specified by:
login
in interfaceRemoteRepository
- Parameters:
workspace
- ignored- Returns:
- nothing
- Throws:
RemoteException
- always thrown
-
login
public RemoteSession login(Credentials credentials) throws RemoteException
Deprecated, for removal: This API element is subject to removal in a future version.Throws aRemoteException
.- Specified by:
login
in interfaceRemoteRepository
- Parameters:
credentials
- ignored- Returns:
- nothing
- Throws:
RemoteException
- always thrown
-
login
public RemoteSession login(Credentials credentials, String workspace) throws RemoteException
Deprecated, for removal: This API element is subject to removal in a future version.Throws aRemoteException
.- Specified by:
login
in interfaceRemoteRepository
- Parameters:
workspace
- ignoredcredentials
- ignored- Returns:
- nothing
- Throws:
RemoteException
- always thrown
-
getDescriptorValue
public Value getDescriptorValue(String key) throws RemoteException
Deprecated, for removal: This API element is subject to removal in a future version.Throws aRemoteException
.- Specified by:
getDescriptorValue
in interfaceRemoteRepository
- Parameters:
key
- ignored- Returns:
- nothing
- Throws:
RemoteException
- always thrown
-
getDescriptorValues
public Value[] getDescriptorValues(String key) throws RemoteException
Deprecated, for removal: This API element is subject to removal in a future version.Throws aRemoteException
.- Specified by:
getDescriptorValues
in interfaceRemoteRepository
- Parameters:
key
- ignored- Returns:
- nothing
- Throws:
RemoteException
- always thrown
-
isSingleValueDescriptor
public boolean isSingleValueDescriptor(String key) throws RemoteException
Deprecated, for removal: This API element is subject to removal in a future version.Throws aRemoteException
.- Specified by:
isSingleValueDescriptor
in interfaceRemoteRepository
- Parameters:
key
- ignored- Returns:
- nothing
- Throws:
RemoteException
- always thrown
-
isStandardDescriptor
public boolean isStandardDescriptor(String key) throws RemoteException
Deprecated, for removal: This API element is subject to removal in a future version.Throws aRemoteException
.- Specified by:
isStandardDescriptor
in interfaceRemoteRepository
- Parameters:
key
- ignored- Returns:
- nothing
- Throws:
RemoteException
- always thrown
-
-