|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.greenstone.gs3client.dlservices.GS3WebServicesQBRAPI
org.greenstone.gs3client.dlservices.GS3ServicesAPIA
public class GS3ServicesAPIA
GS3ServicesAPIA does two things: - it implements DigitalLibraryServicesAPIA for enabling the Java-client to access Greenstone's repository of collections and documents. It makes this possible through use of Greenstone 3's web services. - it inherits from GS3WebServicesQBRAPI, which means it inherits all the methods that deal with invoking the Greenstone 3 web services functionality (through use of Apache Axis' Service and Call objects). It therefore provides an equivalent method to each Greenstone 3 web service operation, even if some of these web service operations are never called by the Java-client and therefore not prescribed by the DigitalLibraryServicesAPIA interface.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface org.greenstone.gs3client.dlservices.DigitalLibraryServicesAPIA |
|---|
DigitalLibraryServicesAPIA.CancelException |
| Field Summary | |
|---|---|
protected java.lang.String |
language
Storing language settings for requests and responses |
(package private) static org.apache.log4j.Logger |
LOG
The Logger for this class |
| Fields inherited from class org.greenstone.gs3client.dlservices.GS3WebServicesQBRAPI |
|---|
call, defaultWsdlURL, namespace, portName, service, serviceName, wsdlURLName |
| Fields inherited from interface org.greenstone.gs3client.dlservices.DigitalLibraryServicesAPIA |
|---|
propertiesFile |
| Constructor Summary | |
|---|---|
GS3ServicesAPIA()
Displays a dialog to get user input for the location of the Greenstone 3 web services' WSDL file |
|
GS3ServicesAPIA(java.lang.String wsdlURLName)
GS3ServicesAPIA constructor, which, given the url to the wsdl file, finds either service and port or the service's endpoint of the GS3 Web Services and instantiates the associated Service and Call objects. |
|
| Method Summary | |
|---|---|
java.lang.String |
describe()
Part of the GS3 Java-Client's DigitalLibraryServicesAPIA interface contract |
java.lang.String |
describeCollection(java.lang.String collection)
Part of the GS3 Java-Client's DigitalLibraryServicesAPIA interface contract. |
java.lang.String |
describeCollectionService(java.lang.String collection,
java.lang.String service)
Part of the GS3 Java-Client's DigitalLibraryServicesAPIA interface contract. |
java.lang.String |
describeService(java.lang.String service)
Part of the GS3 Java-Client's DigitalLibraryServicesAPIA interface contract. |
java.lang.String |
getAssocFileBaseURL()
Part of the GS3 Java-Client's DigitalLibraryServicesAPIA interface contract. |
java.lang.String |
getAssocFileBaseURL(DocumentNodeData docNode)
Part of the GS3 Java-Client's DigitalLibraryServicesAPIA interface contract. |
java.lang.String |
getDisplayName()
|
java.lang.String |
getLanguage()
Part of the GS3 Java-Client's DigitalLibraryServicesAPIA interface contract. |
java.lang.String |
query(java.lang.String collection,
java.lang.String service,
java.util.Map nameValParamsMap)
Part of the GS3 Java-Client's DigitalLibraryServicesAPIA interface contract. |
java.lang.String |
retrieveBrowseMetadata(java.lang.String collection,
java.lang.String service,
java.lang.String[] nodeIDs)
Part of the GS3 Java-Client's DigitalLibraryServicesAPIA interface contract. |
java.lang.String |
retrieveBrowseStructure(java.lang.String collection,
java.lang.String service,
java.lang.String classifierID)
Part of the GS3 Java-Client's DigitalLibraryServicesAPIA interface contract. |
java.lang.String |
retrieveDocumentChildren(java.lang.String collection,
java.lang.String docID)
Part of the GS3 Java-Client's DigitalLibraryServicesAPIA interface contract. |
java.lang.String |
retrieveDocumentChildren(java.lang.String collection,
java.lang.String[] docIDs)
Part of the GS3 Java-Client's DigitalLibraryServicesAPIA interface contract. |
java.lang.String |
retrieveDocumentContent(java.lang.String collection,
java.lang.String docID)
Part of the GS3 Java-Client's DigitalLibraryServicesAPIA interface contract. |
java.lang.String |
retrieveDocumentContent(java.lang.String collection,
java.lang.String[] docIDs)
Part of the GS3 Java-Client's DigitalLibraryServicesAPIA interface contract. |
java.lang.String |
retrieveDocumentMetadata(java.lang.String collection,
java.lang.String docID)
Part of the GS3 Java-Client's DigitalLibraryServicesAPIA interface contract. |
java.lang.String |
retrieveDocumentMetadata(java.lang.String collection,
java.lang.String[] docIDs)
Part of the GS3 Java-Client's DigitalLibraryServicesAPIA interface contract. |
java.lang.String |
retrieveDocumentStructure(java.lang.String collection,
java.lang.String docID)
Part of the GS3 Java-Client's DigitalLibraryServicesAPIA interface contract. |
java.lang.String |
retrieveDocumentStructure(java.lang.String collection,
java.lang.String[] docIDs)
Part of the GS3 Java-Client's DigitalLibraryServicesAPIA interface contract. |
java.lang.String |
retrieveTitleMetadata(java.lang.String collection,
java.lang.String docID)
Part of the GS3 Java-Client's DigitalLibraryServicesAPIA interface contract. |
java.lang.String |
retrieveTitleMetadata(java.lang.String collection,
java.lang.String[] docIDs)
Part of the GS3 Java-Client's DigitalLibraryServicesAPIA interface contract. |
void |
setLanguage(java.lang.String language)
Part of the GS3 Java-Client's DigitalLibraryServicesAPIA interface contract. |
static java.lang.String |
showWsdlInputDialog()
Static method that displays a dialog requesting the user to input the location of Greenstone 3 web services' WSDL file. |
| Methods inherited from class org.greenstone.gs3client.dlservices.GS3WebServicesQBRAPI |
|---|
addArrayParam, addStringParam, basicQuery, browse, browseDescendants, describe, describeCollection, describeCollectionService, describeService, describeServiceCluster, getElementsByTagNameNS, getElementsByTagNameNS, getElementsByTagNameSuffix, getNamespace, getPort, getService, getWsdl, help, helpWithMethod, invokeWith, main, query, retrieveAllBrowseMetadata, retrieveAllDocumentMetadata, retrieveBrowseMetadata, retrieveDocumentContent, retrieveDocumentMetadata, retrieveDocumentStructure, retrieveEntireDocumentStructure |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
static org.apache.log4j.Logger LOG
protected java.lang.String language
| Constructor Detail |
|---|
public GS3ServicesAPIA()
throws javax.xml.rpc.ServiceException,
java.net.MalformedURLException,
javax.xml.parsers.ParserConfigurationException,
java.io.IOException,
java.lang.Exception
javax.xml.rpc.ServiceException
java.net.MalformedURLException
javax.xml.parsers.ParserConfigurationException
java.io.IOException
java.lang.Exception
public GS3ServicesAPIA(java.lang.String wsdlURLName)
throws javax.xml.rpc.ServiceException,
java.net.MalformedURLException,
javax.xml.parsers.ParserConfigurationException,
java.io.IOException,
org.xml.sax.SAXException
wsdlURLName - - location of the WSDL for Greenstone 3's
web services
javax.xml.rpc.ServiceException
java.net.MalformedURLException
javax.xml.parsers.ParserConfigurationException
java.io.IOException
org.xml.sax.SAXException| Method Detail |
|---|
public static java.lang.String showWsdlInputDialog()
throws java.lang.Exception
java.lang.Exceptionpublic java.lang.String getDisplayName()
getDisplayName in interface DigitalLibraryServicesAPIApublic void setLanguage(java.lang.String language)
setLanguage in interface DigitalLibraryServicesAPIAlanguage - has to be a language code as recognised by Greenstone3
(the language codes used by W3C probably). E.g. "en" for English.public java.lang.String getLanguage()
getLanguage in interface DigitalLibraryServicesAPIApublic java.lang.String getAssocFileBaseURL()
getAssocFileBaseURL in interface DigitalLibraryServicesAPIApublic java.lang.String getAssocFileBaseURL(DocumentNodeData docNode)
getAssocFileBaseURL in interface DigitalLibraryServicesAPIApublic java.lang.String describe()
describe in interface DigitalLibraryServicesAPIApublic java.lang.String describeCollection(java.lang.String collection)
describeCollection in interface DigitalLibraryServicesAPIAcollection - is the name of the collection to be described.
public java.lang.String describeCollectionService(java.lang.String collection,
java.lang.String service)
describeCollectionService in interface DigitalLibraryServicesAPIAcollection - is the name of the collection to be described.service - is the name of the collection's service to be described.
public java.lang.String describeService(java.lang.String service)
describeService in interface DigitalLibraryServicesAPIAservice - is the name of the collection's service to be described.
public java.lang.String retrieveDocumentContent(java.lang.String collection,
java.lang.String[] docIDs)
retrieveDocumentContent in interface DigitalLibraryServicesAPIAcollection - is the name of the collection.docIDs - is an array of document identifiers of documents whose (text)
contents are requested.
public java.lang.String retrieveDocumentContent(java.lang.String collection,
java.lang.String docID)
retrieveDocumentContent in interface DigitalLibraryServicesAPIAcollection - is the name of the collection.docID - is the document identifier of the document whose (text)
content is requested.
public java.lang.String retrieveDocumentMetadata(java.lang.String collection,
java.lang.String[] docIDs)
retrieveDocumentMetadata in interface DigitalLibraryServicesAPIAcollection - is the name of the collection.docIDs - is an array of document identifiers of documents whose
metadata is requested.
public java.lang.String retrieveDocumentMetadata(java.lang.String collection,
java.lang.String docID)
retrieveDocumentMetadata in interface DigitalLibraryServicesAPIAcollection - is the name of the collection.docID - is the document identifier of the document whose metadata is
requested.
public java.lang.String retrieveTitleMetadata(java.lang.String collection,
java.lang.String[] docIDs)
retrieveTitleMetadata in interface DigitalLibraryServicesAPIAcollection - is the name of the collection.docIDs - is an array of document identifiers of documents whose titles
are requested
public java.lang.String retrieveTitleMetadata(java.lang.String collection,
java.lang.String docID)
retrieveTitleMetadata in interface DigitalLibraryServicesAPIAcollection - is the name of the collectiondocID - is the document identifier of the document whose titles is
requested
public java.lang.String retrieveDocumentStructure(java.lang.String collection,
java.lang.String[] docIDs)
retrieveDocumentStructure in interface DigitalLibraryServicesAPIAcollection - is the name of the collectiondocIDs - is an array of document identifiers of documents whose
hierarchical structures are requested
public java.lang.String retrieveDocumentStructure(java.lang.String collection,
java.lang.String docID)
retrieveDocumentStructure in interface DigitalLibraryServicesAPIAcollection - is the name of the collectiondocID - is the document identifier of the document whose hierarchical
structure is requested
public java.lang.String retrieveDocumentChildren(java.lang.String collection,
java.lang.String[] docIDs)
retrieveDocumentChildren in interface DigitalLibraryServicesAPIAcollection - is the name of the collectiondocIDs - is an array of document identifiers of documents whose
hierarchical structures are requested
public java.lang.String retrieveDocumentChildren(java.lang.String collection,
java.lang.String docID)
retrieveDocumentChildren in interface DigitalLibraryServicesAPIAcollection - is the name of the collectiondocID - is the document identifier of the document whose hierarchical
structure is requested
public java.lang.String retrieveBrowseStructure(java.lang.String collection,
java.lang.String service,
java.lang.String classifierID)
retrieveBrowseStructure in interface DigitalLibraryServicesAPIAclassifierID - is of the form CL# where the number (#) marks
out structured sections like CL1.1.3 or CL2collection - is the name of the collectionservice - is the name of the browse service (=ClassifierBrowse usually)
public java.lang.String retrieveBrowseMetadata(java.lang.String collection,
java.lang.String service,
java.lang.String[] nodeIDs)
retrieveBrowseMetadata in interface DigitalLibraryServicesAPIAnodeIDs - is of the form CL#.# where the number (#) marks
out structured sections like CL2.1.3. NodeIDs are generally subsections
of top-level classifierNodes (CL#, e.g. CL3).collection - is the name of the collectionservice - is the name of the Browse's MetadataRetrieve service
(usually the browse service is ClassifierBrowse, in which case it always
has a retrieve service called ClassifierBrowseMetadataRetrieve)
public java.lang.String query(java.lang.String collection,
java.lang.String service,
java.util.Map nameValParamsMap)
query in interface DigitalLibraryServicesAPIAnameValParamsMap - is a Map of name and value pairs for all the
query field data values. The names match the field names that
describeCollectionService() would have returned for the query service.collection - is the name of the collectionservice - is the name of the query service
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||