Class NdrResponseReader

java.lang.Object
org.dlese.dpc.ndr.reader.NdrResponseReader

public class NdrResponseReader extends Object
Base Class for reading NDR responses to requests that return handle lists, such as "List" and "Find" requests. To read responses for requests that return NDRObjects, use NdrObjectReader.
Author:
ostwald
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected org.dom4j.Document
    NOT YET DOCUMENTED
    protected List
    NOT YET DOCUMENTED
    protected InfoXML
    NOT YET DOCUMENTED
  • Constructor Summary

    Constructors
    Constructor
    Description
    Constructor for the NdrResponseReader object
  • Method Summary

    Modifier and Type
    Method
    Description
    Gets the handle attribute of the NdrResponseReader object
    protected org.dom4j.Node
    getNode(String xpath)
    Gets a single Node satisfying give XPath.
    protected List
    Get all Nodes satisfying the given xpath.
    protected String
    return the Text of a Node satisfying the given XPath.
    static void
    main(String[] args)
    The main program for the NdrResponseReader class
    protected static void
    pp(org.dom4j.Node node)
    Prints a dom4j.Node as formatted string.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • infoXML

      protected InfoXML infoXML
      NOT YET DOCUMENTED
    • doc

      protected org.dom4j.Document doc
      NOT YET DOCUMENTED
    • handleList

      protected List handleList
      NOT YET DOCUMENTED
  • Constructor Details

    • NdrResponseReader

      public NdrResponseReader(InfoXML infoXML) throws Exception
      Constructor for the NdrResponseReader object
      Parameters:
      infoXML - NOT YET DOCUMENTED
      Throws:
      Exception - NOT YET DOCUMENTED
  • Method Details

    • getHandleList

      public List getHandleList() throws Exception
      Gets the handle attribute of the NdrResponseReader object
      Returns:
      The handle value
      Throws:
      Exception - NOT YET DOCUMENTED
    • main

      public static void main(String[] args)
      The main program for the NdrResponseReader class
      Parameters:
      args - The command line arguments
    • getNodes

      protected List getNodes(String xpath)
      Get all Nodes satisfying the given xpath.
      Parameters:
      xpath - an XPath
      Returns:
      a List of all modes satisfying given XPath, or null
    • getNode

      protected org.dom4j.Node getNode(String xpath)
      Gets a single Node satisfying give XPath. If more than one Node is found, the first is returned (and a msg is printed).
      Parameters:
      xpath - an XPath
      Returns:
      a dom4j Node
    • getNodeText

      protected String getNodeText(String xpath)
      return the Text of a Node satisfying the given XPath.
      Parameters:
      xpath - an XPath\
      Returns:
      Text of Node or empty String if no Node is found
    • pp

      protected static void pp(org.dom4j.Node node)
      Prints a dom4j.Node as formatted string.
      Parameters:
      node - NOT YET DOCUMENTED