context.arch.util
Class XMLURLReader

java.lang.Object
  extended bycontext.arch.util.XMLURLReader

public class XMLURLReader
extends java.lang.Object

This class takes a URL that is encoded in XML and creates a DataObject from it.

See Also:
DataObject

Field Summary
static int HTTP_PORT
          The default port for HTTP access
 
Constructor Summary
XMLURLReader(java.lang.String aUrl)
          This constructor accepts a URL and creates the necessary objects to parse it.
 
Method Summary
 DataObject getParsedData()
          This method returns a DataObject containing the parsed information from an XML-encoded URL.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

HTTP_PORT

public static final int HTTP_PORT
The default port for HTTP access

See Also:
Constant Field Values
Constructor Detail

XMLURLReader

public XMLURLReader(java.lang.String aUrl)
             throws java.net.MalformedURLException
This constructor accepts a URL and creates the necessary objects to parse it.

Parameters:
aUrl - URL encoded in XML to parse
Throws:
java.net.MalformedURLException - if the given url can't be converted to a URL object
See Also:
ParserObject
Method Detail

getParsedData

public DataObject getParsedData()
                         throws DecodeException
This method returns a DataObject containing the parsed information from an XML-encoded URL.

Returns:
DataObject containing the parsed information
Throws:
DecodeException - if the URL can't be parsed correctly