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

java.lang.Object
  extended byorg.globus.mds.webmds.xmlSources.resourceProperties.ResourcePropertyNodeSource

public class ResourcePropertyNodeSource
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.
rpNamespace (specified as xmlSource.sourceName.param.rpNamespace in the servlet configuration)
The namespace part of the QName of the resource property to be queried for.
rpName (specified as xmlSource.sourceName.param.rpName in the servlet configuration)
The local name part of the QName of the resource property to be queried for.
allowUserEndpoints (specified as xmlSource.sourceName.param.allowUserEndpoints in the servlet configuration)
If true, a value of xmlSource.sourceName.param.endpoint specified in the request will override the configured endpoint value.
allowUserResourceProperties (specified as xmlSource.sourceName.param.allowUserResourceProperties in the servlet configuration)
If true, a values of xmlSource.sourceName.param.rpNamespace and xmlSource.sourceName.param.rpName specified in the request will override the configured resource property namespace and name.


Field Summary
private static java.lang.String ALLOW_USER_RP_PARAM
           
private  boolean allowUserEndpoints
           
private  boolean allowUserResourceProperties
           
private  java.lang.String requestInfoString
           
private static java.lang.String RP_NAME_PARAM
           
private static java.lang.String RP_NAMESPACE_PARAM
           
private  WebmdsUtil webmdsUtil
           
 
Constructor Summary
ResourcePropertyNodeSource()
           
 
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 and qname
 void init(WebmdsUtil webmdsUtil)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

RP_NAMESPACE_PARAM

private static final java.lang.String RP_NAMESPACE_PARAM
See Also:
Constant Field Values

RP_NAME_PARAM

private static final java.lang.String RP_NAME_PARAM
See Also:
Constant Field Values

ALLOW_USER_RP_PARAM

private static final java.lang.String ALLOW_USER_RP_PARAM
See Also:
Constant Field Values

allowUserEndpoints

private boolean allowUserEndpoints

allowUserResourceProperties

private boolean allowUserResourceProperties

requestInfoString

private java.lang.String requestInfoString

webmdsUtil

private WebmdsUtil webmdsUtil
Constructor Detail

ResourcePropertyNodeSource

public ResourcePropertyNodeSource()
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 and qname


init

public void init(WebmdsUtil webmdsUtil)