SNMP Stack 4_12

uk.co.westhawk.test
Class XMLtoDOM

java.lang.Object
  |
  +--uk.co.westhawk.test.XMLtoDOM

public class XMLtoDOM
extends java.lang.Object

The class XMLtoDOM creates a DOM (Document Object Model) from XML input. This XML input is received via a URL.

Version:
$Revision: 1.5 $ $Date: 2002/10/10 15:13:58 $
Author:
Birgit Arkesteijn

Constructor Summary
XMLtoDOM()
          The constructor.
 
Method Summary
 org.w3c.dom.Document getDocument(java.net.URL u)
          Translates a URL into a DOM document.
 void setWriter(java.io.PrintWriter w)
          Sets the writer to be used for all output.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XMLtoDOM

public XMLtoDOM()
The constructor.
Method Detail

setWriter

public void setWriter(java.io.PrintWriter w)
Sets the writer to be used for all output.
Parameters:
w - The writer

getDocument

public org.w3c.dom.Document getDocument(java.net.URL u)
Translates a URL into a DOM document. To get the data from the servlet the 'get' method is used. The URL should have the following format:
      http://host/servlet?k1=v1&k2=v2&k3=v3
 
Parameters:
l - the URL
Returns:
the DOM document

SNMP Stack 4_12