xmlBlaster 2.2.0 client API

org.xmlBlaster.client.key
Class UnSubscribeKey

java.lang.Object
  extended by org.xmlBlaster.client.key.UnSubscribeKey

public class UnSubscribeKey
extends java.lang.Object

Wrap a XML key for an unSubscribe() invocation.

See QueryKeySaxFactory for a syntax description of the allowed xml structure

See Also:
QueryKeySaxFactory, the interface.unSubscribe requirement

Constructor Summary
UnSubscribeKey(Global glob, QueryKeyData queryKeyData)
          Constructor for internal use.
UnSubscribeKey(Global glob, java.lang.String query)
          UnSubscribe to a well known message oid/subscriptionId or url.
UnSubscribeKey(Global glob, java.lang.String queryString, java.lang.String queryType)
          Constructor with query parameters.
 
Method Summary
 QueryKeyData getData()
           
 java.lang.String getDomain()
          Access the domain setting
 java.lang.String getOid()
          Access the <key oid="...">.
 java.lang.String getQueryString()
           
 java.lang.String getQueryType()
          Access the query type "XPATH" or "EXACT"
 void setDomain(java.lang.String domain)
          Give a hint to which cluster domain this Key belongs.
 void setOid(java.lang.String oid)
          Set the $lt;key oid="...">.
 void setQueryString(java.lang.String tags)
          Your XPath query string.
 java.lang.String toString()
          Converts the data in XML ASCII string.
 java.lang.String toXml()
          Converts the data in XML ASCII string.
 java.lang.String wrap(java.lang.String str)
          May be used to integrate your application tags.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

UnSubscribeKey

public UnSubscribeKey(Global glob,
                      java.lang.String query)
UnSubscribe to a well known message oid/subscriptionId or url.

Parameters:
query - The query string For example a topic oid like "Hello" or "oid:Hello" or a query like "xpath://key", "domain:CLUSTER" or an explicit "subscriptionId:__subId:heron-34560459046"

UnSubscribeKey

public UnSubscribeKey(Global glob,
                      java.lang.String queryString,
                      java.lang.String queryType)
               throws XmlBlasterException
Constructor with query parameters.

Parameters:
queryString - The String with e.g. XPath syntax
queryType - The query syntax, e.g. Constants.XPATH
XmlBlasterException - for invalid queryType
Throws:
XmlBlasterException

UnSubscribeKey

public UnSubscribeKey(Global glob,
                      QueryKeyData queryKeyData)
Constructor for internal use.

Parameters:
queryKeyData - The struct holding the data
Method Detail

getData

public QueryKeyData getData()

setOid

public final void setOid(java.lang.String oid)
Set the $lt;key oid="...">.

Parameters:
The - unique key oid

getOid

public final java.lang.String getOid()
Access the <key oid="...">.

Returns:
The unique key oid

getQueryType

public java.lang.String getQueryType()
Access the query type "XPATH" or "EXACT"

Returns:
A queryType string or null

setQueryString

public void setQueryString(java.lang.String tags)
Your XPath query string.

Parameters:
str - Your tags in ASCII XML syntax

getQueryString

public java.lang.String getQueryString()

setDomain

public void setDomain(java.lang.String domain)
Give a hint to which cluster domain this Key belongs.


getDomain

public java.lang.String getDomain()
Access the domain setting

Returns:
A domain string or null

toString

public java.lang.String toString()
Converts the data in XML ASCII string.

Overrides:
toString in class java.lang.Object
Returns:
An XML ASCII string

toXml

public java.lang.String toXml()
Converts the data in XML ASCII string.

Returns:
An XML ASCII string

wrap

public java.lang.String wrap(java.lang.String str)
May be used to integrate your application tags.

Parameters:
str - Your tags
Returns:
The ASCII XML key containing the key tag and your tags

xmlBlaster 2.2.0 client API

Copyright © 1999-2014 The xmlBlaster.org contributers.