DLESE Tools
v1.6.0

org.dlese.dpc.schemedit.ndr.util
Class NCSWebServiceClient

java.lang.Object
  extended by org.dlese.dpc.serviceclients.webclient.WebServiceClient
      extended by org.dlese.dpc.schemedit.ndr.util.NCSWebServiceClient

public class NCSWebServiceClient
extends WebServiceClient

Class to extract information from the NCS via webServices.

Author:
Jonathan Ostwald

Constructor Summary
NCSWebServiceClient()
          Constructor for the NCSWebServiceClient object
NCSWebServiceClient(String baseWebServiceUrl)
          Constructor for the NCSWebServiceClient object
 
Method Summary
 String getNCSCollectionID(String resourceUrl)
          Finds the collection id for the provided collection resource url.
 List getNCSCollectionIDs()
          Gets the IDS of the Collections of the NCS http://ncs.nsdl.org/mgr/services/ddsws1-1?verb=ListCollections
 List getNCSCollectionRecordIDs()
          Gets a list of record ids from the NCSL Collections collection.
 NCSCollectReader getNCSRecord(String recId)
          Returns NCSCollectReader instance for NCS Collect record having provided id.
 NCSCollectReader getNCSRecord(URL resourceUrl)
          Gets an NCSCollectReader instance for a given resourceUrl.
 NCSCollectReader getNCSRecordByTitle(String title)
          Gets the nCSRecordByTitle attribute of the NCSWebServiceClient object
 List getRecordIDs(String collectionKey)
          Gets a list of record ids from the specified collection.
static void main(String[] args)
          The main program for the NCSWebServiceClient class
 
Methods inherited from class org.dlese.dpc.serviceclients.webclient.WebServiceClient
doGetId, doPutRecord, doPutRecord, doPutRecord, doSearch, getBaseUrl, getRecord, getRequestUrl, getResponseDoc, getResponseDoc, getResponseError, getResponseError, getResponseStr, getTimedURL, getTimedXmlDocument, getTimeOutSecs, setDebug, setRequestUrl, setRequestUrl, setTimeOutSecs, stuffId, urlCheck
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NCSWebServiceClient

public NCSWebServiceClient()
Constructor for the NCSWebServiceClient object


NCSWebServiceClient

public NCSWebServiceClient(String baseWebServiceUrl)
Constructor for the NCSWebServiceClient object

Parameters:
baseWebServiceUrl - NOT YET DOCUMENTED
Method Detail

getNCSRecord

public NCSCollectReader getNCSRecord(URL resourceUrl)
Gets an NCSCollectReader instance for a given resourceUrl.

Uses web service to find a metadata record for the resourceUrl and then creates a reader object from the response.

Parameters:
resourceUrl - Description of the Parameter
Returns:
The nCSRecord value

getNCSRecord

public NCSCollectReader getNCSRecord(String recId)
                              throws Exception
Returns NCSCollectReader instance for NCS Collect record having provided id.

Parameters:
recId - Description of the Parameter
Returns:
The nCSRecord value
Throws:
Exception - Description of the Exception

getNCSRecordByTitle

public NCSCollectReader getNCSRecordByTitle(String title)
                                     throws Exception
Gets the nCSRecordByTitle attribute of the NCSWebServiceClient object

Parameters:
title - NOT YET DOCUMENTED
Returns:
The nCSRecordByTitle value
Throws:
Exception - NOT YET DOCUMENTED

getNCSCollectionID

public String getNCSCollectionID(String resourceUrl)
Finds the collection id for the provided collection resource url.

Parameters:
resourceUrl - Description of the Parameter
Returns:
The nCSCollectionID value

getNCSCollectionRecordIDs

public List getNCSCollectionRecordIDs()
                               throws Exception
Gets a list of record ids from the NCSL Collections collection.

Returns:
The nCSCollectionIDs value
Throws:
Exception - Description of the Exception

getRecordIDs

public List getRecordIDs(String collectionKey)
                  throws Exception
Gets a list of record ids from the specified collection.

Returns:
The nCSCollectionIDs value
Throws:
Exception - Description of the Exception

getNCSCollectionIDs

public List getNCSCollectionIDs()
                         throws Exception
Gets the IDS of the Collections of the NCS http://ncs.nsdl.org/mgr/services/ddsws1-1?verb=ListCollections

Returns:
The nCSCollectionIDs value
Throws:
Exception - NOT YET DOCUMENTED

main

public static void main(String[] args)
The main program for the NCSWebServiceClient class

Parameters:
args - The command line arguments

DLESE Tools
v1.6.0