org.globus.mds.webmds.xmlSources.resourceProperties
Class ResourcePropertyQueryNodeSource
java.lang.Object
org.globus.mds.webmds.xmlSources.resourceProperties.ResourcePropertyQueryNodeSource
- public class ResourcePropertyQueryNodeSource
- extends java.lang.Object
Class to get a resource property and return it as a DOM node.
This uses some configuration parameters from the servlet config file:
- endpoint
(specified as xmlSource.sourceName.param.endpoint in
the servlet configuration)
- The endpoint name to be used in a getResourceProperty request.
- endpointKeyName and endpointKeyValue (specified as
xmlSource.sourceName.param.endpointKeyName and
xmlSource.sourceName.param.endpointKeyValue in
the servlet configuration).
- An optional key-value pair that can be used to supply reference
properties to an endpoint specified by an
endpoint parameter.
- allowUserEndpoints
(specified as
xmlSource.sourceName.param.allowUserEndpoints in
the servlet configuration)
- If true, values of
xmlSource.sourceName.param.endpoint,
xmlSource.sourceName.param.endpointKeyName, and
xmlSource.sourceName.param.endpointKeyValue
specified in the request will override the configured endpoint value.
- endpointFile
(specified as xmlSource.sourceName.param.endpointFile in
the servlet configuration)
- The name of a file containing an XML representation of an endpoint.
The endpointFile parameter can never be overridden by request
arguments.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
requestInfoString
private java.lang.String requestInfoString
webmdsUtil
private WebmdsUtil webmdsUtil
ResourcePropertyQueryNodeSource
public ResourcePropertyQueryNodeSource()
getNode
public org.w3c.dom.Node getNode(ParameterMap configParams,
ParameterMap requestParams)
throws ResourcePropertySourceException,
WebmdsConfigException,
java.io.IOException
- Get a resource property and return it as a node.
- Parameters:
configParams - - configured parameters for this XML sourcerequestParams - - request parameters for this XML source
- Throws:
ResourcePropertySourceException
WebmdsConfigException
java.io.IOException
getRequestInfo
public java.lang.String getRequestInfo()
- Returns a string containing the request endpoint.
init
public void init(WebmdsUtil webmdsUtil)