Package org.dlese.dpc.schemedit.ndr.util
Class NCSWebServiceClient
java.lang.Object
org.dlese.dpc.serviceclients.webclient.WebServiceClient
org.dlese.dpc.schemedit.ndr.util.NCSWebServiceClient
Class to extract information from the NCS via webServices.
- Author:
- Jonathan Ostwald
-
Constructor Summary
ConstructorsConstructorDescriptionConstructor for the NCSWebServiceClient objectNCSWebServiceClient(String baseWebServiceUrl) Constructor for the NCSWebServiceClient object -
Method Summary
Modifier and TypeMethodDescriptiongetNCSCollectionID(String resourceUrl) Finds the collection id for the provided collection resource url.Gets the IDS of the Collections of the NCS http://ncs.nsdl.org/mgr/services/ddsws1-1?verb=ListCollectionsGets a list of record ids from the NCSL Collections collection.getNCSRecord(String recId) Returns NCSCollectReader instance for NCS Collect record having provided id.getNCSRecord(URL resourceUrl) Gets an NCSCollectReader instance for a given resourceUrl.getNCSRecordByTitle(String title) Gets the nCSRecordByTitle attribute of the NCSWebServiceClient objectgetRecordIDs(String collectionKey) Gets a list of record ids from the specified collection.static voidThe main program for the NCSWebServiceClient classMethods 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
-
Constructor Details
-
NCSWebServiceClient
public NCSWebServiceClient()Constructor for the NCSWebServiceClient object -
NCSWebServiceClient
Constructor for the NCSWebServiceClient object- Parameters:
baseWebServiceUrl- NOT YET DOCUMENTED
-
-
Method Details
-
getNCSRecord
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
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
Gets the nCSRecordByTitle attribute of the NCSWebServiceClient object- Parameters:
title- NOT YET DOCUMENTED- Returns:
- The nCSRecordByTitle value
- Throws:
Exception- NOT YET DOCUMENTED
-
getNCSCollectionID
Finds the collection id for the provided collection resource url.- Parameters:
resourceUrl- Description of the Parameter- Returns:
- The nCSCollectionID value
-
getNCSCollectionRecordIDs
Gets a list of record ids from the NCSL Collections collection.- Returns:
- The nCSCollectionIDs value
- Throws:
Exception- Description of the Exception
-
getRecordIDs
Gets a list of record ids from the specified collection.- Returns:
- The nCSCollectionIDs value
- Throws:
Exception- Description of the Exception
-
getNCSCollectionIDs
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
The main program for the NCSWebServiceClient class- Parameters:
args- The command line arguments
-