edu.ucsb.adl.middleware.rmi
Class CollectionServiceImpl

java.lang.Object
  |
  +--java.rmi.server.RemoteObject
        |
        +--java.rmi.server.RemoteServer
              |
              +--java.rmi.server.UnicastRemoteObject
                    |
                    +--edu.ucsb.adl.middleware.rmi.CollectionServiceImpl
All Implemented Interfaces:
CollectionService, java.rmi.Remote, java.io.Serializable

public final class CollectionServiceImpl
extends java.rmi.server.UnicastRemoteObject
implements CollectionService

Bridge between the RMI interface to the ADL collection service and the collection service itself.

Version:
$Header: /export/home/gjanee/middleware/edu/ucsb/adl/middleware/rmi/RCS/CollectionServiceImpl.java,v 1.1 2001/02/16 14:42:39 gjanee Exp $

$Log: CollectionServiceImpl.java,v $ Revision 1.1 2001/02/16 14:42:39 gjanee Initial revision

Author:
Greg Janée
Alexandria Digital Library
See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.rmi.server.RemoteObject
ref
 
Constructor Summary
CollectionServiceImpl(java.lang.String configurationFile)
          Creates a CollectionServiceImpl.
 
Method Summary
protected  void finalize()
          Frees all resources held by the bridge.
 java.lang.String performCollectionService(java.lang.String collection)
          Performs the ADL collection service.
 
Methods inherited from class java.rmi.server.UnicastRemoteObject
clone, exportObject, exportObject, exportObject, unexportObject
 
Methods inherited from class java.rmi.server.RemoteServer
getClientHost, getLog, setLog
 
Methods inherited from class java.rmi.server.RemoteObject
equals, getRef, hashCode, toString, toStub
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CollectionServiceImpl

public CollectionServiceImpl(java.lang.String configurationFile)
                      throws InternalErrorException,
                             java.rmi.RemoteException
Creates a CollectionServiceImpl.

Parameters:
configurationFile - The filename of an ADL middleware configuration file.
Throws:
InternalErrorException - If the initialization of the service fails.
java.rmi.RemoteException - If an RMI error occurs.
Method Detail

performCollectionService

public java.lang.String performCollectionService(java.lang.String collection)
                                          throws MiddlewareException,
                                                 java.rmi.RemoteException
Performs the ADL collection service.

Specified by:
performCollectionService in interface CollectionService
Parameters:
collection - The collection name, e.g., "adl_catalog".
Returns:
An XML document that is well-formed and valid according to the appropriate DTD.
Throws:
BadRequestException - If collection is invalid.
NoAuthorizationException - If the request is valid but not allowed.
java.rmi.RemoteException - If an RMI error occurs.
InternalErrorException - If the request cannot otherwise be completed.
MiddlewareException

finalize

protected void finalize()
Frees all resources held by the bridge.

Overrides:
finalize in class java.lang.Object