org.globus.mds.webmds.xmlSources.xmlDomNode
Class NodeXmlSource
java.lang.Object
org.globus.mds.webmds.xmlSources.xmlDomNode.NodeXmlSource
- All Implemented Interfaces:
- WebmdsXmlSource
- public class NodeXmlSource
- extends java.lang.Object
- implements WebmdsXmlSource
NodeXmlSource -- calls a WebmdsNode class to get a DOM node object, and
creates a Source object from it.
This uses some configuration parameters from the servlet config file:
- class
(specified as xmlSource.sourceName.param.class in
the servlet configuration)
- The name of a class that implements the WebmdsNodeSource interface.
This class will be called to get an XML document
- class_specific_parameters
(specified as
xmlSource.sourceName.param.class_specific_parameters in
the servlet configuration)
- Additional parameters to be passed to
xmlSource.sourceName.param.class.
- See Also:
WebmdsNodeSource
|
Method Summary |
java.lang.String |
getRequestInfo()
Queries the WebmdsNodeSource for a descriptive string and returns it. |
javax.xml.transform.Source |
getXmlSource(java.lang.String name,
ParameterMap initParams,
ParameterMap requestParams)
Get an xml Source object -- call a WebmdsNodeSource class to get a Node
object, make a Source object out of it, and return it. |
void |
init(WebmdsUtil webmdsUtil)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
initParameters
private ParameterMap initParameters
NODE_CLASS_PARAM_NAME
private final java.lang.String NODE_CLASS_PARAM_NAME
- See Also:
- Constant Field Values
requestInfoString
private java.lang.String requestInfoString
webmdsUtil
private WebmdsUtil webmdsUtil
NodeXmlSource
public NodeXmlSource()
getXmlSource
public javax.xml.transform.Source getXmlSource(java.lang.String name,
ParameterMap initParams,
ParameterMap requestParams)
throws WebmdsXmlSourceException,
WebmdsConfigException,
java.io.IOException
- Get an xml Source object -- call a WebmdsNodeSource class to get a Node
object, make a Source object out of it, and return it.
- Specified by:
getXmlSource in interface WebmdsXmlSource
- Parameters:
initParams - initialization parameters. This must include a
"class" parameter with the path name to the filerequestParams - parameters from the http request. Passed
on to the WebmdsNodeSource class.
- Throws:
WebmdsXmlSourceException
WebmdsConfigException
java.io.IOException
getRequestInfo
public java.lang.String getRequestInfo()
- Queries the WebmdsNodeSource for a descriptive string and returns it.
- Specified by:
getRequestInfo in interface WebmdsXmlSource
init
public void init(WebmdsUtil webmdsUtil)
- Specified by:
init in interface WebmdsXmlSource