2.8 Implementing the XmlQueryProcessor Interface

The XmlQueryProcessor interface must be implemented by the driver because the XmlCommandProcessor execute method requires as its second parameter an object that implements the XmlQueryProcessor interface. The XmlQueryProcessor interface is used by the DirXML engine to query the publisher when additional data is required in the course of processing an event.

An object implementing the XmlQueryProcessor interface is also passed to the Subscriber’s execute method so that the subscriber can query back into eDirectory, if necessary.

Most drivers implement the XmlQueryProcessor interface in the publisher object, although this is not required.The implementation of the XmlQueryProcessor interface and the query handling for the subscriber execute method can usually share most code.

The XmlQueryProcessor interface consists of a single method, query, which performs the query described in the XML document argument.

For Javadoc, see XmlQueryProcessor.