Package com.esri.gpt.framework.util

Examples of com.esri.gpt.framework.util.ResourceXml


      try {
        // Check if it is an  xml document
        XmlIoUtil.transform(sRecordByIdXslt);
        record.setFullMetadata(sRecordByIdXslt);
      } catch(Exception e) {
        ResourceXml resourceXml = new ResourceXml();
        String fullMetadata = resourceXml.makeResourceFromCswResponse(recordByIdResponse, record.getId());
        record.setFullMetadata(fullMetadata);
      }
    } else {
      // The get record by id
      record.setFullMetadata(recordByIdResponse);
View Full Code Here


    return new UrlUri(info.getUrl());
  }

    @Override
  public String getContent() throws IOException, SAXException {
    ResourceXml resourceXml = new ResourceXml();
    String feedXml = resourceXml.makeResourceXmlFromResponse(info.getUrl().replaceAll("\\{", "'").replaceAll("\\}","'"));
    Document fDom = null;
  try {
    fDom = DomUtil.makeDomFromString(feedXml, true);
  } catch (ParserConfigurationException e) {
    // TODO Auto-generated catch block
View Full Code Here

   */
  @Override
  public int collectHitCount(Object source) throws Exception {
    String url = Val.chkStr((String) source);
    if(url.length() > 0){
      ResourceXml resourceXml = new ResourceXml();
      String feedXml = "";
      Document fDom = null;
      try {
        feedXml = resourceXml.makeResourceXmlFromResponse(url);
        fDom = DomUtil.makeDomFromString(feedXml, true);
      } catch (ParserConfigurationException e) {
        // TODO Auto-generated catch block
        e.printStackTrace();
      } catch (SAXException e) {
View Full Code Here

    return new UrlUri(info.getUrl());
  }

    @Override
  public String getContent() throws IOException {
    ResourceXml resourceXml = new ResourceXml();
    return resourceXml.makeResourceXmlFromResponse(info.getUrl());
  }
View Full Code Here

* Generates temporary native resource.
* @return native resource
* @throws IllegalArgumentException if title not provided
*/
public Native generateNativeResource() throws IllegalArgumentException {
  return new NativeImpl(new ResourceXml().makeSimpleResourceXml(
    getName().length()>0? getName(): getHostUrl(), getHostUrl()
  ));
}
View Full Code Here

TOP

Related Classes of com.esri.gpt.framework.util.ResourceXml

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.