org.dspace.sword
Class SWORDService

java.lang.Object
  extended by org.dspace.sword.SWORDService

public class SWORDService
extends Object

Represents the SWORD service provided by DSpace. This class is responsible for generating the Service Document, which is the primary descriptor of the SWORD service

Author:
Richard Jones

Field Summary
static Logger log
          Log4j logging instance
 
Constructor Summary
SWORDService()
           
 
Method Summary
 ServiceDocument getServiceDocument()
          Obtain the service document for the repository based on the DSpace context and the SWORD context which must be set for this object prior to calling this method.
 void setContext(Context context)
          Set the DSpace context to use
 void setSWORDContext(SWORDContext sc)
          Set the SWORD Context to use
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

public static Logger log
Log4j logging instance

Constructor Detail

SWORDService

public SWORDService()
Method Detail

setContext

public void setContext(Context context)
Set the DSpace context to use

Parameters:
context -

setSWORDContext

public void setSWORDContext(SWORDContext sc)
Set the SWORD Context to use

Parameters:
sc -

getServiceDocument

public ServiceDocument getServiceDocument()
                                   throws DSpaceSWORDException
Obtain the service document for the repository based on the DSpace context and the SWORD context which must be set for this object prior to calling this method.

Returns:
The service document based on the context of the request
Throws:
DSpaceSWORDException


Copyright © 2008 The DSpace Foundation. All Rights Reserved.