org.globus.ogsa.utils
Class SubscriptionHelper
java.lang.Object
org.globus.ogsa.utils.SubscriptionHelper
- public class SubscriptionHelper
- extends java.lang.Object
Helper class to construct OGSI compliant subscription expressions.
It is intended to be used with the subscribe operation.
|
Method Summary |
static ExtensibilityType |
getNameExpression(QName name)
Creates an OGSI subscribeByName expression |
static ExtensibilityType |
getXPathExpression(java.lang.String name,
java.lang.String XPathExpr,
java.lang.String[] namespaces)
Creates a globus subscribeByXPath expression |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SubscriptionHelper
public SubscriptionHelper()
getNameExpression
public static ExtensibilityType getNameExpression(QName name)
throws GridServiceException
- Creates an OGSI subscribeByName expression
- Parameters:
name - name of service data element to subscribe to
- Returns:
- subscription expression
- Throws:
GridServiceException
getXPathExpression
public static ExtensibilityType getXPathExpression(java.lang.String name,
java.lang.String XPathExpr,
java.lang.String[] namespaces)
throws GridServiceException
- Creates a globus subscribeByXPath expression
- Parameters:
name - name of service data to use as basis for searchXPathExpr - XPath expresstion to apply to service datanamespaces - XPath requires that the client provides a namespace
mapping for every node in the query scope that has a corresponding
namespace attribute. In the current implementation, this is provided
via an array of Strings of the form "xmlns:=".
For example:
xmlns:gsdl=http://www.gridforum.org/namespaces/2003/03/OGSI
- Returns:
- subscription expression
- Throws:
GridServiceException