Package org.apache.jackrabbit.rmi.client
Class BrokenRemoteRepository
- java.lang.Object
-
- org.apache.jackrabbit.rmi.client.BrokenRemoteRepository
-
- All Implemented Interfaces:
Remote,RemoteRepository
@Deprecated public class BrokenRemoteRepository extends Object implements RemoteRepository
Deprecated.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
RemoteExceptionwhenever any method is invoked. Used as a sentinel object by theSafeClientRepositoryclass.
-
-
Constructor Summary
Constructors Constructor Description BrokenRemoteRepository()Deprecated.Creates a remote repository whose methods throw a remote exception.BrokenRemoteRepository(String message)Deprecated.Creates a remote repository whose methods trow a remote exception with the given message.BrokenRemoteRepository(RemoteException exception)Deprecated.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 StringgetDescriptor(String key)Deprecated.Throws aRemoteException.String[]getDescriptorKeys()Deprecated.Throws aRemoteException.ValuegetDescriptorValue(String key)Deprecated.Throws aRemoteException.Value[]getDescriptorValues(String key)Deprecated.Throws aRemoteException.booleanisSingleValueDescriptor(String key)Deprecated.Throws aRemoteException.booleanisStandardDescriptor(String key)Deprecated.Throws aRemoteException.RemoteSessionlogin()Deprecated.Throws aRemoteException.RemoteSessionlogin(String workspace)Deprecated.Throws aRemoteException.RemoteSessionlogin(Credentials credentials)Deprecated.Throws aRemoteException.RemoteSessionlogin(Credentials credentials, String workspace)Deprecated.Throws aRemoteException.
-
-
-
Constructor Detail
-
BrokenRemoteRepository
public BrokenRemoteRepository(RemoteException exception)
Deprecated.Creates a remote repository whose methods throw the given exception.- Parameters:
exception- remote exception
-
BrokenRemoteRepository
public BrokenRemoteRepository(String message)
Deprecated.Creates a remote repository whose methods trow a remote exception with the given message.- Parameters:
message- exception message
-
BrokenRemoteRepository
public BrokenRemoteRepository()
Deprecated.Creates a remote repository whose methods throw a remote exception.
-
-
Method Detail
-
getDescriptor
public String getDescriptor(String key) throws RemoteException
Deprecated.Throws aRemoteException.- Specified by:
getDescriptorin interfaceRemoteRepository- Parameters:
key- ignored- Returns:
- nothing
- Throws:
RemoteException- always thrown
-
getDescriptorKeys
public String[] getDescriptorKeys() throws RemoteException
Deprecated.Throws aRemoteException.- Specified by:
getDescriptorKeysin interfaceRemoteRepository- Returns:
- nothing
- Throws:
RemoteException- always thrown
-
login
public RemoteSession login() throws RemoteException
Deprecated.Throws aRemoteException.- Specified by:
loginin interfaceRemoteRepository- Returns:
- nothing
- Throws:
RemoteException- always thrown
-
login
public RemoteSession login(String workspace) throws RemoteException
Deprecated.Throws aRemoteException.- Specified by:
loginin interfaceRemoteRepository- Parameters:
workspace- ignored- Returns:
- nothing
- Throws:
RemoteException- always thrown
-
login
public RemoteSession login(Credentials credentials) throws RemoteException
Deprecated.Throws aRemoteException.- Specified by:
loginin interfaceRemoteRepository- Parameters:
credentials- ignored- Returns:
- nothing
- Throws:
RemoteException- always thrown
-
login
public RemoteSession login(Credentials credentials, String workspace) throws RemoteException
Deprecated.Throws aRemoteException.- Specified by:
loginin interfaceRemoteRepository- Parameters:
workspace- ignoredcredentials- ignored- Returns:
- nothing
- Throws:
RemoteException- always thrown
-
getDescriptorValue
public Value getDescriptorValue(String key) throws RemoteException
Deprecated.Throws aRemoteException.- Specified by:
getDescriptorValuein interfaceRemoteRepository- Parameters:
key- ignored- Returns:
- nothing
- Throws:
RemoteException- always thrown
-
getDescriptorValues
public Value[] getDescriptorValues(String key) throws RemoteException
Deprecated.Throws aRemoteException.- Specified by:
getDescriptorValuesin interfaceRemoteRepository- Parameters:
key- ignored- Returns:
- nothing
- Throws:
RemoteException- always thrown
-
isSingleValueDescriptor
public boolean isSingleValueDescriptor(String key) throws RemoteException
Deprecated.Throws aRemoteException.- Specified by:
isSingleValueDescriptorin interfaceRemoteRepository- Parameters:
key- ignored- Returns:
- nothing
- Throws:
RemoteException- always thrown
-
isStandardDescriptor
public boolean isStandardDescriptor(String key) throws RemoteException
Deprecated.Throws aRemoteException.- Specified by:
isStandardDescriptorin interfaceRemoteRepository- Parameters:
key- ignored- Returns:
- nothing
- Throws:
RemoteException- always thrown
-
-