public class NCSWebServiceClient extends WebServiceClient
Constructor and Description |
---|
NCSWebServiceClient()
Constructor for the NCSWebServiceClient object
|
NCSWebServiceClient(java.lang.String baseWebServiceUrl)
Constructor for the NCSWebServiceClient object
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getNCSCollectionID(java.lang.String resourceUrl)
Finds the collection id for the provided collection resource url.
|
java.util.List |
getNCSCollectionIDs()
Gets the IDS of the Collections of the NCS
http://ncs.nsdl.org/mgr/services/ddsws1-1?verb=ListCollections
|
java.util.List |
getNCSCollectionRecordIDs()
Gets a list of record ids from the NCSL Collections collection.
|
NCSCollectReader |
getNCSRecord(java.lang.String recId)
Returns NCSCollectReader instance for NCS Collect record having provided
id.
|
NCSCollectReader |
getNCSRecord(java.net.URL resourceUrl)
Gets an NCSCollectReader instance for a given resourceUrl.
|
NCSCollectReader |
getNCSRecordByTitle(java.lang.String title)
Gets the nCSRecordByTitle attribute of the NCSWebServiceClient object
|
java.util.List |
getRecordIDs(java.lang.String collectionKey)
Gets a list of record ids from the specified collection.
|
static void |
main(java.lang.String[] args)
The main program for the NCSWebServiceClient class
|
doGetId, doPutRecord, doPutRecord, doPutRecord, doSearch, getBaseUrl, getRecord, getRequestUrl, getResponseDoc, getResponseDoc, getResponseError, getResponseError, getResponseStr, getTimedURL, getTimedXmlDocument, getTimeOutSecs, setDebug, setRequestUrl, setRequestUrl, setTimeOutSecs, stuffId, urlCheck
public NCSWebServiceClient()
public NCSWebServiceClient(java.lang.String baseWebServiceUrl)
baseWebServiceUrl
- NOT YET DOCUMENTEDpublic NCSCollectReader getNCSRecord(java.net.URL resourceUrl)
Uses web service to find a metadata record for the resourceUrl and then creates a reader object from the response.
resourceUrl
- Description of the Parameterpublic NCSCollectReader getNCSRecord(java.lang.String recId) throws java.lang.Exception
recId
- Description of the Parameterjava.lang.Exception
- Description of the Exceptionpublic NCSCollectReader getNCSRecordByTitle(java.lang.String title) throws java.lang.Exception
title
- NOT YET DOCUMENTEDjava.lang.Exception
- NOT YET DOCUMENTEDpublic java.lang.String getNCSCollectionID(java.lang.String resourceUrl)
resourceUrl
- Description of the Parameterpublic java.util.List getNCSCollectionRecordIDs() throws java.lang.Exception
java.lang.Exception
- Description of the Exceptionpublic java.util.List getRecordIDs(java.lang.String collectionKey) throws java.lang.Exception
java.lang.Exception
- Description of the Exceptionpublic java.util.List getNCSCollectionIDs() throws java.lang.Exception
java.lang.Exception
- NOT YET DOCUMENTEDpublic static void main(java.lang.String[] args)
args
- The command line arguments