Package com.gi.server.rest.html

Examples of com.gi.server.rest.html.ServiceHTML


          searchFields == null ? "" : searchFields);
      restBody = restBody.replace("${SR}", sr == null ? "" : sr);
      restBody = restBody.replace("${LAYERS}", layers == null ? ""
          : layers);

      ServiceHTML html = new ServiceHTML();
      html.setContextRoot(contextRoot);
      html.setTitle("Find (" + serviceName + "}");
      html
          .setCatalog(" &gt; <a href='"
              + contextRoot
              + "/rest/service/MapService'>Map Service</a> &gt; <a href='"
              + contextRoot + "/rest/service/MapService/"
              + serviceName + "'>" + serviceName
              + "</a> &gt; Find");
      html.setHeader("Find");
      html.setRestBody(restBody);

      result = html.toString();
    } catch (Exception ex) {
      ex.printStackTrace();
    }

    return result;
View Full Code Here


          : layerDefs);
      restBody = restBody.replace("${SIZE}", size == null ? "" : size);
      restBody = restBody.replace("${IMAGE_SR}", imageSR == null ? ""
          : imageSR);

      ServiceHTML html = new ServiceHTML();
      html.setContextRoot(contextRoot);
      html.setTitle("Export (" + serviceName + ")");
      html
          .setCatalog(" &gt; <a href='"
              + contextRoot
              + "/rest/service/MapService'>Map Service</a> &gt; <a href='"
              + contextRoot + "/rest/service/MapService/"
              + serviceName + "'>" + serviceName
              + "</a> &gt; Export");
      html.setHeader("Export Map Image");
      html.setRestBody(restBody);
      strResult = html.toString();

      result = strResult.getBytes();
    } catch (Exception ex) {
      ex.printStackTrace();
    }
View Full Code Here

TOP

Related Classes of com.gi.server.rest.html.ServiceHTML

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.