org.globus.mds.webmds.xmlSources.resourceProperties
Class ResourcePropertyQueryNodeSource

java.lang.Object
  extended byorg.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.


Field Summary
private  java.lang.String requestInfoString
           
private  WebmdsUtil webmdsUtil
           
 
Constructor Summary
ResourcePropertyQueryNodeSource()
           
 
Method Summary
 org.w3c.dom.Node getNode(ParameterMap configParams, ParameterMap requestParams)
          Get a resource property and return it as a node.
 java.lang.String getRequestInfo()
          Returns a string containing the request endpoint.
 void init(WebmdsUtil webmdsUtil)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

requestInfoString

private java.lang.String requestInfoString

webmdsUtil

private WebmdsUtil webmdsUtil
Constructor Detail

ResourcePropertyQueryNodeSource

public ResourcePropertyQueryNodeSource()
Method Detail

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 source
requestParams - - 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)