Esri Geoportal Server
1.0

com.esri.gpt.control.publication
Class ResourceReader

java.lang.Object
  extended by com.esri.gpt.control.publication.ResourceReader

public class ResourceReader
extends Object

Reads the XML content associated with a resource. The source for the resource can be an XML file, an XML HTTP response file, or an ArcGIS JSON response.


Constructor Summary
ResourceReader()
          Default constructor.
 
Method Summary
 List<String> getAgsServiceUrls()
          Gets a list of ArcGIS server service URLs associated with the last ArcGIS server or folder read.
 String readXml(String systemId)
          Reads the XML content behind a file or URL.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ResourceReader

public ResourceReader()
Default constructor.

Method Detail

getAgsServiceUrls

public List<String> getAgsServiceUrls()
Gets a list of ArcGIS server service URLs associated with the last ArcGIS server or folder read.

Returns:
the list of urls

readXml

public String readXml(String systemId)
               throws Exception
Reads the XML content behind a file or URL.
If the content returns is ArcGIS/JSON, the JSON object is converted to XML.

Parameters:
systemId - the system id of the source (file path or URL)
Returns:
the associated XML
Throws:
Exception - if an exception occurs

Esri Geoportal Server
1.0

Copyright 2011 Environmental Systems Research Institute. All rights reserved. Use is subject to license terms.