xmlBlaster 2.2.0 API

org.xmlBlaster.util.qos
Class QueryQosSaxFactory

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

<qos>
   <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 -->
   <initialUpdate>false</initialUpdate> 
   <updateOneway>false</updateOneway> 
   <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 -->
</qos>
 

Author:
xmlBlaster@marcelruff.info
See Also:
QueryQosData, QueryQosFactoryTest

Field Summary
private  Global glob
           
private static java.util.logging.Logger log
           
private  QueryQosData queryQosData
           
private  AccessFilterQos tmpFilter
          helper flag for SAX parsing: parsing inside ?
private  HistoryQos tmpHistory
           
private  QuerySpecQos tmpQuerySpec
           
 
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
 

Field Detail

glob

private final Global glob

log

private static java.util.logging.Logger log

queryQosData

private QueryQosData queryQosData

tmpFilter

private AccessFilterQos tmpFilter
helper flag for SAX parsing: parsing inside ?


tmpQuerySpec

private QuerySpecQos tmpQuerySpec

tmpHistory

private HistoryQos tmpHistory
Constructor Detail

QueryQosSaxFactory

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

Method Detail

readObject

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
Parameters:
the - XML based ASCII string
Throws:
XmlBlasterException

startElement

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
Overrides:
startElement in class XmlQoSBase
Parameters:
name - Tag name
attrs - the attributes of the tag

endElement

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
Overrides:
endElement in class XmlQoSBase
Parameters:
name - Tag name

writeObject

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
Parameters:
extraOffset - indenting of tags for nice output
props - Configuration/formatting hints for the dump (see Constants.TOXML_*)
Returns:
internal state of the RequestBroker as a XML ASCII string

writeObject_

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

getName

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

Specified by:
getName in interface I_QueryQosFactory
Returns:
"QueryQosSaxFactory"

xmlBlaster 2.2.0 API

Copyright © 1999-2014 The xmlBlaster.org contributers.