xmlBlaster 2.2.0 client API

Class QueryQosSaxFactory

  extended by org.xmlBlaster.util.SaxHandlerBase
      extended by org.xmlBlaster.util.XmlQoSBase
          extended by org.xmlBlaster.util.qos.QueryQosSaxFactory
All Implemented Interfaces:
org.xml.sax.ContentHandler, org.xml.sax.ErrorHandler, org.xml.sax.ext.LexicalHandler, I_QueryQosFactory

public class QueryQosSaxFactory
extends XmlQoSBase
implements I_QueryQosFactory

Parsing xml QoS (quality of service) of return query.

   <subscribe id='_subId:1'/>    <!-- Force a subscription ID from client side -->
   <erase forceDestroy='true'/>  <!-- Kill a MsgUnit even if there are pending updates or subscriptions -->
   <meta>false</meta>         <!-- Don't send me the xmlKey meta data on updates -->
   <content>false</content>   <!-- Don't send me the content data on updates (notify only) -->
   <multiSubscribe>false</multiSubscribe> <!-- Ignore a second subscribe on same oid or XPATH -->
   <local>false</local>       <!-- Inhibit the delivery of messages to myself if i have published it -->
   <notify>false</notify>     <!-- Suppress erase event to subcribers -->
   <filter type='myPlugin' version='1.0'>a!=100</filter>
                                    <!-- Filters messages i have subscribed as implemented in your plugin -->
   <history numEntries='20'/>    <!-- Default is to deliver the current entry (numEntries='1'), '-1' deliver all -->

See Also:
QueryQosData, org.xmlBlaster.test.classtest.qos.QueryQosFactoryTest

Field Summary
Fields inherited from class org.xmlBlaster.util.XmlQoSBase
clientProperty, clientPropertyTagNames, cpCharacter, inQos
Fields inherited from class org.xmlBlaster.util.SaxHandlerBase
character, locator, xmlLiteral, xmlSource
Constructor Summary
QueryQosSaxFactory(Global glob)
          Can be used as singleton.
Method Summary
 void endElement(java.lang.String uri, java.lang.String localName, java.lang.String name)
          End element, event from SAX parser.
 java.lang.String getName()
          A human readable name of this factory
 QueryQosData readObject(java.lang.String xmlQos)
          Parses the given xml Qos and returns a QueryQosData holding the data.
 void startElement(java.lang.String uri, java.lang.String localName, java.lang.String name, org.xml.sax.Attributes attrs)
          Start element, event from SAX parser.
static java.lang.String writeObject_(QueryQosData queryQosData, java.lang.String extraOffset, java.util.Properties props)
 java.lang.String writeObject(QueryQosData queryQosData, java.lang.String extraOffset, java.util.Properties props)
          Dump state of this object into a XML ASCII string.
Methods inherited from class org.xmlBlaster.util.XmlQoSBase
addTagToString, characters, characters, endElementBase, init, isEmpty, startElementBase
Methods inherited from class org.xmlBlaster.util.SaxHandlerBase
comment, endCDATA, endDocument, endDTD, endEntity, endPrefixMapping, error, fatalError, getUseLexicalHandler, ignorableWhitespace, init, init, notationDecl, processingInstruction, setDocumentLocator, setUseLexicalHandler, skippedEntity, startCDATA, startDocument, startDTD, startEntity, startPrefixMapping, toString, toXml, unparsedEntityDecl, warning
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

Constructor Detail


public QueryQosSaxFactory(Global glob)
Can be used as singleton.

Method Detail


public QueryQosData readObject(java.lang.String xmlQos)
                        throws XmlBlasterException
Parses the given xml Qos and returns a QueryQosData holding the data. Parsing of update() and publish() QoS is supported here.

Specified by:
readObject in interface I_QueryQosFactory
the - XML based ASCII string


public final void startElement(java.lang.String uri,
                               java.lang.String localName,
                               java.lang.String name,
                               org.xml.sax.Attributes attrs)
Start element, event from SAX parser.

Specified by:
startElement in interface org.xml.sax.ContentHandler
startElement in class XmlQoSBase
name - Tag name
attrs - the attributes of the tag


public void endElement(java.lang.String uri,
                       java.lang.String localName,
                       java.lang.String name)
End element, event from SAX parser.

Specified by:
endElement in interface org.xml.sax.ContentHandler
endElement in class XmlQoSBase
name - Tag name


public final java.lang.String writeObject(QueryQosData queryQosData,
                                          java.lang.String extraOffset,
                                          java.util.Properties props)
Dump state of this object into a XML ASCII string.

Specified by:
writeObject in interface I_QueryQosFactory
extraOffset - indenting of tags for nice output
props - Configuration/formatting hints for the dump (see Constants.TOXML_*)
internal state of the RequestBroker as a XML ASCII string


public static final java.lang.String writeObject_(QueryQosData queryQosData,
                                                  java.lang.String extraOffset,
                                                  java.util.Properties props)


public java.lang.String getName()
A human readable name of this factory

Specified by:
getName in interface I_QueryQosFactory

xmlBlaster 2.2.0 client API

Copyright © 1999-2014 The xmlBlaster.org contributers.