org.apache.jackrabbit.rmi.client
Class BrokenRemoteRepository

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

public class BrokenRemoteRepository
extends 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(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.
 
Method Summary
 String getDescriptor(String key)
          Throws a RemoteException.
 String[] getDescriptorKeys()
          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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BrokenRemoteRepository

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

Parameters:
exception - remote exception

BrokenRemoteRepository

public BrokenRemoteRepository(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 String getDescriptor(String key)
                     throws RemoteException
Throws a RemoteException.

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

getDescriptorKeys

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

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

login

public RemoteSession login()
                    throws RemoteException
Throws a RemoteException.

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

login

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

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

login

public RemoteSession login(Credentials credentials)
                    throws RemoteException
Throws a RemoteException.

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

login

public RemoteSession login(Credentials credentials,
                           String workspace)
                    throws RemoteException
Throws a RemoteException.

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


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