org.apache.jackrabbit.rmi.client
Class BrokenRemoteRepository

java.lang.Object
  extended by org.apache.jackrabbit.rmi.client.BrokenRemoteRepository
All Implemented Interfaces:
java.rmi.Remote, RemoteRepository

public class BrokenRemoteRepository
extends java.lang.Object
implements RemoteRepository

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(java.rmi.RemoteException exception)
          Creates a remote repository whose methods throw the given exception.
BrokenRemoteRepository(java.lang.String message)
          Creates a remote repository whose methods trow a remote exception with the given message.
 
Method Summary
 java.lang.String getDescriptor(java.lang.String key)
          Throws a RemoteException.
 java.lang.String[] getDescriptorKeys()
          Throws a RemoteException.
 RemoteSession login()
          Throws a RemoteException.
 RemoteSession login(javax.jcr.Credentials credentials)
          Throws a RemoteException.
 RemoteSession login(javax.jcr.Credentials credentials, java.lang.String workspace)
          Throws a RemoteException.
 RemoteSession login(java.lang.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

BrokenRemoteRepository

public BrokenRemoteRepository(java.rmi.RemoteException exception)
Creates a remote repository whose methods throw the given exception.

Parameters:
exception - remote exception

BrokenRemoteRepository

public BrokenRemoteRepository(java.lang.String message)
Creates a remote repository whose methods trow a remote exception with the given message.

Parameters:
message - exception message

BrokenRemoteRepository

public BrokenRemoteRepository()
Creates a remote repository whose methods throw a remote exception.

Method Detail

getDescriptor

public java.lang.String getDescriptor(java.lang.String key)
                               throws java.rmi.RemoteException
Throws a RemoteException.

Specified by:
getDescriptor in interface RemoteRepository
Parameters:
key - ignored
Returns:
nothing
Throws:
java.rmi.RemoteException - always thrown

getDescriptorKeys

public java.lang.String[] getDescriptorKeys()
                                     throws java.rmi.RemoteException
Throws a RemoteException.

Specified by:
getDescriptorKeys in interface RemoteRepository
Returns:
nothing
Throws:
java.rmi.RemoteException - always thrown

login

public RemoteSession login()
                    throws java.rmi.RemoteException
Throws a RemoteException.

Specified by:
login in interface RemoteRepository
Returns:
nothing
Throws:
java.rmi.RemoteException - always thrown

login

public RemoteSession login(java.lang.String workspace)
                    throws java.rmi.RemoteException
Throws a RemoteException.

Specified by:
login in interface RemoteRepository
Parameters:
workspace - ignored
Returns:
nothing
Throws:
java.rmi.RemoteException - always thrown

login

public RemoteSession login(javax.jcr.Credentials credentials)
                    throws java.rmi.RemoteException
Throws a RemoteException.

Specified by:
login in interface RemoteRepository
Parameters:
credentials - ignored
Returns:
nothing
Throws:
java.rmi.RemoteException - always thrown

login

public RemoteSession login(javax.jcr.Credentials credentials,
                           java.lang.String workspace)
                    throws java.rmi.RemoteException
Throws a RemoteException.

Specified by:
login in interface RemoteRepository
Parameters:
workspace - ignored
credentials - ignored
Returns:
nothing
Throws:
java.rmi.RemoteException - always thrown


Copyright © 2004-2010 Apache Software Foundation. All Rights Reserved.