|
xmlBlaster 2.2.0 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.xmlBlaster.engine.xml2java.XmlKeyDom
public class XmlKeyDom
Building a DOM tree for XmlKeys.
This DOM tree contains the meta data from XmlKey:<![CDATA[ <?xml version='1.0' encoding='UTF-8' ?> <xmlBlaster> <key oid='abc' contentMime='text/plain'> <Hello/> </key> <key oid='xyz' contentMime='text/xml'> <World/> </key> </xmlBlaster>]]>
Field Summary | |
---|---|
protected java.lang.String |
encoding
|
private static java.util.logging.Logger |
log
|
private static java.lang.String |
ME
|
protected RequestBroker |
requestBroker
|
private ServerScope |
serverScope
|
protected org.w3c.dom.Document |
xmlKeyDoc
|
Constructor Summary | |
---|---|
protected |
XmlKeyDom(RequestBroker requestBroker)
Constructor to handle a DOM with XPath query. |
Method Summary | |
---|---|
protected java.lang.String |
getKeyOid(org.w3c.dom.Node node)
Given a node |
org.w3c.dom.Node |
mergeNode(org.w3c.dom.Node node)
Adding a new <key> node to the xmlBlaster xmlKey tree. |
java.util.ArrayList |
parseKeyOid(SessionInfo sessionInfo,
java.lang.String xpathQuery,
QueryQosData qos)
This method does the XPath query. |
java.lang.String |
toXml()
Dump state of this object into XML. |
java.lang.String |
toXml(java.lang.String extraOffset,
boolean stripDeclaration)
Dump state of this object into XML. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static final java.lang.String ME
private final ServerScope serverScope
private static java.util.logging.Logger log
protected org.w3c.dom.Document xmlKeyDoc
protected java.lang.String encoding
protected final RequestBroker requestBroker
Constructor Detail |
---|
protected XmlKeyDom(RequestBroker requestBroker) throws XmlBlasterException
XmlBlasterException
Method Detail |
---|
public final org.w3c.dom.Node mergeNode(org.w3c.dom.Node node) throws XmlBlasterException
mergeNode
in interface I_MergeDomNode
the
- node to merge into the DOM tree, it is invalid after this call
XmlBlasterException
public final java.util.ArrayList parseKeyOid(SessionInfo sessionInfo, java.lang.String xpathQuery, QueryQosData qos) throws XmlBlasterException
clientName
- is only needed for nicer logging output
XmlBlasterException
protected final java.lang.String getKeyOid(org.w3c.dom.Node node) throws XmlBlasterException
XmlBlasterException
public java.lang.String toXml() throws XmlBlasterException
XmlBlasterException
public java.lang.String toXml(java.lang.String extraOffset, boolean stripDeclaration) throws XmlBlasterException
extraOffset
- indenting of tagsstripDeclaration
- if true '<?xml version="1.0" encoding="UTF-8"?>' is not dumped
XmlBlasterException
|
xmlBlaster 2.2.0 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |