org.dspace.sword
Class DSpaceSWORDServer
java.lang.Object
org.dspace.sword.DSpaceSWORDServer
- All Implemented Interfaces:
- SWORDServer
public class DSpaceSWORDServer
- extends Object
- implements SWORDServer
An implementation of the SWORDServer interface to allow SWORD deposit
operations on DSpace. See:
http://www.ukoln.ac.uk/repositories/digirep/index/SWORD_APP_Profile_0.5
- Author:
- Richard Jones
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
log
public static Logger log
- Log4j logger
DSpaceSWORDServer
public DSpaceSWORDServer()
doServiceDocument
public ServiceDocument doServiceDocument(ServiceDocumentRequest request)
throws SWORDAuthenticationException,
SWORDException
- Description copied from interface:
SWORDServer
- Answer a Service Document request sent on behalf of a user
- Specified by:
doServiceDocument in interface SWORDServer
- Parameters:
request - The Service Document Request object
- Returns:
- The ServiceDocument representing the service document
- Throws:
SWORDAuthenticationException - Thrown if the authentication fails
SWORDException - Thrown in an un-handalable Exception occurs.
This will be dealt with by sending a HTTP 500 Server Exception
doDeposit
public DepositResponse doDeposit(Deposit deposit)
throws SWORDAuthenticationException,
SWORDException
- Description copied from interface:
SWORDServer
- Answer a SWORD deposit
- Specified by:
doDeposit in interface SWORDServer
- Parameters:
deposit - The Deposit object
- Returns:
- The response to the deposit
- Throws:
SWORDAuthenticationException - Thrown if the authentication fails
SWORDException - Thrown in an un-handalable Exception occurs.
This will be dealt with by sending a HTTP 500 Server Exception
Copyright © 2008 The DSpace Foundation. All Rights Reserved.