org.dspace.sword
Class DSpaceSWORDServer

java.lang.Object
  extended by 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

Field Summary
static org.apache.log4j.Logger log
          Log4j logger
 
Constructor Summary
DSpaceSWORDServer()
           
 
Method Summary
 AtomDocumentResponse doAtomDocument(AtomDocumentRequest adr)
          Answer a request for an entry document
 DepositResponse doDeposit(Deposit deposit)
          Answer a SWORD deposit
 ServiceDocument doServiceDocument(ServiceDocumentRequest request)
          Answer a Service Document request sent on behalf of a user
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

public static final org.apache.log4j.Logger log
Log4j logger

Constructor Detail

DSpaceSWORDServer

public DSpaceSWORDServer()
Method Detail

doServiceDocument

public ServiceDocument doServiceDocument(ServiceDocumentRequest request)
                                  throws SWORDAuthenticationException,
                                         SWORDException,
                                         SWORDErrorException
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
SWORDErrorException - Thrown if there was an error with the input not matching the capabilities of the server

doDeposit

public DepositResponse doDeposit(Deposit deposit)
                          throws SWORDAuthenticationException,
                                 SWORDException,
                                 SWORDErrorException
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 if an un-handalable Exception occurs. This will be dealt with by sending a HTTP 500 Server Exception
SWORDErrorException - Thrown if there was an error with the input not matching the capabilities of the server

doAtomDocument

public AtomDocumentResponse doAtomDocument(AtomDocumentRequest adr)
                                    throws SWORDAuthenticationException,
                                           SWORDException,
                                           SWORDErrorException
Description copied from interface: SWORDServer
Answer a request for an entry document

Specified by:
doAtomDocument in interface SWORDServer
Parameters:
adr - The Atom Document Request object
Returns:
The response to the atom document request
Throws:
SWORDAuthenticationException - Thrown if the authentication fails
SWORDException - Thrown if an un-handalable Exception occurs. This will be dealt with by sending a HTTP 500 Server Exception
SWORDErrorException - Thrown if there was an error with the input not matching the capabilities of the server


Copyright © 2013 DuraSpace. All Rights Reserved.