org.purl.sword.server
Interface SWORDServer

All Known Implementing Classes:
DSpaceSWORDServer, DummyServer

public interface SWORDServer

An abstract interface to be implemnted by repositories wishing to provide a SWORD compliant service. http://www.ukoln.ac.uk/repositories/digirep/index/SWORD_APP_Profile_0.5

Author:
Stuart Lewis

Method Summary
 DepositResponse doDeposit(Deposit deposit)
          Answer a SWORD deposit
 ServiceDocument doServiceDocument(ServiceDocumentRequest sdr)
          Answer a Service Document request sent on behalf of a user
 

Method Detail

doServiceDocument

ServiceDocument doServiceDocument(ServiceDocumentRequest sdr)
                                  throws SWORDAuthenticationException,
                                         SWORDException
Answer a Service Document request sent on behalf of a user

Parameters:
sdr - 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

DepositResponse doDeposit(Deposit deposit)
                          throws SWORDAuthenticationException,
                                 SWORDContentTypeException,
                                 SWORDException
Answer a SWORD deposit

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
SWORDContentTypeException


Copyright © 2008 The DSpace Foundation. All Rights Reserved.