APIs

1. Programming Model Overview

There is no "client" API for accessing WebMDS; WebMDS is a servlet that is accessed via web forms.

WebMDS uses a WebMDS plugin (a Java class that implements the WebmdsXmlSource interface) to acquire XML documents (which can be used either as raw information sources or as XSL transformations). WebMDS comes with two WebMDS plugins: FileXmlSource, which reads XML from a file (and is primarily used to acquire XSL transformations), and NodeXmlSource. NodeXmlSource in turn calls a node source plugin (a Java class that implements the WebmdsNodeSource interface) to acquire an XML DOM document. acquires XML information using a WebMDS XML source, a Java class that implements the WebmdsXmlSource interface. To summarize:

  • WebMDS is a servlet that uses plugins to acquire XML documents containing raw data and XSL transformations, and then applies the acquired XSL transformation on the acquired data.

    • The plugins used by WebMDS implement the org.globus.mds.webmds.WebmdsXmlSource interface.
    • WebMDS plugins include:

      • org.globus.mds.webmds.xmlSources.file.FileXmlSource, which reads XML from a file, and
      • org.globus.mds.webmds.xmlSources.xmlDomNode.NodeXmlSource, which uses its own plugin interface to acquire XML DOM documents.

        • The plugins used by NodeXmlSource implement the org.globus.mds.webmds.xmlSources.xmlDomNode.WebmdsNodeSource interface
        • Node source plugins include org.globus.mds.webmds.xmlSources.resourceProperties.ResourcePropertyNodeSource and org.globus.mds.webmds.xmlSources.resourceProperties.ResourcePropertyQueryNodeSource, which acquire resource property information.
  • The raw XML data acquired by WebMDS is processed by XSL transformations; see the W3C XSLT Documentation for more information on creating XSL transforms.

2. Component API