Package com.gi.server.rest.html

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


      sb.append("<br/><br/>");
      sb.append("<b>WKT:</b><br/>" + wkt);

      String restBody = sb.toString();

      ServiceHTML html = new ServiceHTML();
      html.setContextRoot(contextRoot);
      html.setTitle("WKID");
      html.setCatalog(" &gt; <a href='"
          + contextRoot
          + "/rest/service/UtilService'>Utility Service</a> &gt; <a href='"
          + contextRoot
          + "/rest/service/UtilService/wkids'>WKIDs</a> &gt; "+wkid);
      html.setHeader("Spatial Reference");
      html.setRestBody(restBody);

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

    return result;
View Full Code Here


        restBody += sbResult.toString();
      }

      String contextRoot = context.getContextPath();

      ServiceHTML html = new ServiceHTML();
      html.setContextRoot(contextRoot);
      html.setTitle("Relation");
      html
          .setCatalog(" &gt; <a href='"
              + contextRoot
              + "/rest/service/GeometryService'>Geometry Service</a> &gt; Relation");
      html.setHeader("Relation");
      html.setRestBody(restBody);
      result = html.toString();
    } catch (Exception ex) {
      ex.printStackTrace();
    }

    return result;
View Full Code Here

      restBody = restBody.replace("${TOKEN}", token == null ? "" : token);
      restBody = restBody.replace("${FEATURES}", features == null ? ""
          : features);

      ServiceHTML html = new ServiceHTML();
      html.setContextRoot(contextRoot);
      html.setTitle("Add Features (" + serviceName + ")");
      html
          .setCatalog(" &gt; <a href='"
              + contextRoot
              + "/rest/service/FeatureService'>Feature Service</a> &gt; <a href='"
              + contextRoot + "/rest/service/FeatureService/"
              + serviceName + "'>" + serviceName
              + "</a> &gt; <a href='" + contextRoot
              + "/rest/service/FeatureService/" + serviceName
              + "/" + layerId + "'>" + layerId
              + "</a> &gt; Add Features");
      html.setHeader("Add Features Layer ID: " + layerId);
      html.setRestBody(restBody);

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

    return result;
View Full Code Here

        restBody += sbResult.toString();
      }

      String contextRoot = context.getContextPath();

      ServiceHTML html = new ServiceHTML();
      html.setContextRoot(contextRoot);
      html.setTitle("Trim/Extend");
      html
          .setCatalog(" &gt; <a href='"
              + contextRoot
              + "/rest/service/GeometryService'>Geometry Service</a> &gt; TrimExtend");
      html.setHeader("Trim/Extend");
      html.setRestBody(restBody);
      result = html.toString();
    } catch (Exception ex) {
      ex.printStackTrace();
    }

    return result;
View Full Code Here

        restBody += sbResult.toString();
      }

      String contextRoot = context.getContextPath();

      ServiceHTML html = new ServiceHTML();
      html.setContextRoot(contextRoot);
      html.setTitle("Distance");
      html
          .setCatalog(" &gt; <a href='"
              + contextRoot
              + "/rest/service/GeometryService'>Geometry Service</a> &gt; Distance");
      html.setHeader("Distance");
      html.setRestBody(restBody);
      result = html.toString();
    } catch (Exception ex) {
      ex.printStackTrace();
    }

    return result;
View Full Code Here

        restBody += sbResult.toString();
      }

      String contextRoot = context.getContextPath();

      ServiceHTML html = new ServiceHTML();
      html.setContextRoot(contextRoot);
      html.setTitle("Difference");
      html
          .setCatalog(" &gt; <a href='"
              + contextRoot
              + "/rest/service/GeometryService'>Geometry Service</a> &gt; Difference");
      html.setHeader("Difference");
      html.setRestBody(restBody);
      result = html.toString();
    } catch (Exception ex) {
      ex.printStackTrace();
    }

    return result;
View Full Code Here

      restBody = restBody
          .replace("${OUT_SR}", outSR == null ? "" : outSR);
      restBody = restBody.replace("${OUT_FIELDS}", outFields == null ? ""
          : outFields);

      ServiceHTML html = new ServiceHTML();
      html.setContextRoot(contextRoot);
      html.setTitle("Query (" + serviceName + ")");
      html
          .setCatalog(" &gt; <a href='"
              + contextRoot
              + "/rest/service/FeatureService'>Feature Service</a> &gt; <a href='"
              + contextRoot + "/rest/service/FeatureService/"
              + serviceName + "'>" + serviceName
              + "</a> &gt; <a href='" + contextRoot
              + "/rest/service/FeatureService/" + serviceName
              + "/" + layerId + "'>" + layerId
              + "</a> &gt; Query");
      html.setHeader("Query Layer ID: " + layerId);
      html.setRestBody(restBody);

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

    return result;
View Full Code Here

        }
      }

      String contextRoot = context.getContextPath();

      ServiceHTML html = new ServiceHTML();
      html.setContextRoot(contextRoot);
      html.setTitle("Label Points");
      html
          .setCatalog(" &gt; <a href='"
              + contextRoot
              + "/rest/service/GeometryService'>Geometry Service</a> &gt; Label Points");
      html.setHeader("Label Points");
      html.setRestBody(restBody);
      result = html.toString();
    } catch (Exception ex) {
      ex.printStackTrace();
    }

    return result;
View Full Code Here

        restBody += sbResult.toString();
      }

      String contextRoot = context.getContextPath();

      ServiceHTML html = new ServiceHTML();
      html.setContextRoot(contextRoot);
      html.setTitle("Project");
      html
          .setCatalog(" &gt; <a href='"
              + contextRoot
              + "/rest/service/GeometryService'>Geometry Service</a> &gt; Project");
      html.setHeader("Project Geometries");
      html.setRestBody(restBody);
      result = html.toString();
    } catch (Exception ex) {
      ex.printStackTrace();
    }

    return result;
View Full Code Here

          + "/find'>Find</a>");
      sb.append("<br/><br/>");

      String restBody = sb.toString();

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

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

    return result;
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.