Package com.gi.server.rest.html

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


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

      ServiceHTML html = new ServiceHTML();
      html.setContextRoot(contextRoot);
      html.setTitle("Update 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; Update Features");
      html.setHeader("Update 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("Densify");
      html
          .setCatalog(" &gt; <a href='"
              + contextRoot
              + "/rest/service/GeometryService'>Geometry Service</a> &gt; Densify");
      html.setHeader("Densify Geometries");
      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("Intersect");
      html
          .setCatalog(" &gt; <a href='"
              + contextRoot
              + "/rest/service/GeometryService'>Geometry Service</a> &gt; Intersect");
      html.setHeader("Intersect");
      html.setRestBody(restBody);
      result = html.toString();
    } catch (Exception ex) {
      ex.printStackTrace();
    }

    return result;
View Full Code Here

      }
      sb.append("<br/><br/>");

      String restBody = sb.toString();

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

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

    return result;
View Full Code Here

        sb.append("</ul>");
      }

      String restBody = sb.toString();

      ServiceHTML html = new ServiceHTML();
      html.setContextRoot(contextRoot);
      html.setTitle("WKIDs");
      html.setContextRoot(contextRoot);
      html
          .setCatalog(" &gt; <a href='"
              + contextRoot
              + "/rest/service/UtilService'>Utility Service</a> &gt; WKIDs");
      html.setHeader("Supported WKIDs");
      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("Lengths");
      html
          .setCatalog(" &gt; <a href='"
              + contextRoot
              + "/rest/service/GeometryService'>Geometry Service</a> &gt; Lengths");
      html.setHeader("Lengths");
      html.setRestBody(restBody);
      result = html.toString();
    } catch (Exception ex) {
      ex.printStackTrace();
    }

    return result;
View Full Code Here

      String restBody = sb.toString();

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

      ServiceHTML html = new ServiceHTML();
      html.setContextRoot(contextRoot);
      html.setTitle("Feature (" + 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; Feature");
      html.setHeader("Feature ID: " + featureId);
      html.setRestBody(restBody);

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

    return result;
View Full Code Here

    sb.append("&nbsp;&nbsp;<a href='" + contextRoot
        + "/rest/service/GeometryService/generalize'>Generalize</a>");
    sb.append("<br/><br/>");
    String restBody = sb.toString();

    ServiceHTML html = new ServiceHTML();
    html.setContextRoot(contextRoot);
    html.setTitle("Geometry Service");
    html.setCatalog(" &gt; Geometry Service");
    html.setHeader("Geometry Service");
    html.setRestBody(restBody);
    result = html.toString();

    return result;
  }
View Full Code Here

        }
      }

      String contextRoot = context.getContextPath();

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

    return result;
View Full Code Here

      restBody = restBody.replace("${UPDATES}", updates == null ? ""
          : updates);
      restBody = restBody.replace("${DELETES}", deletes == null ? ""
          : deletes);

      ServiceHTML html = new ServiceHTML();
      html.setContextRoot(contextRoot);
      html.setTitle("Apply Edits (" + 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; Apply Edits");
      html.setHeader("Apply Edits Layer ID: " + layerId);
      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.