Package com.gi.server.rest.html

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


          + "/query'>Query Layer</a>");
      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/MapService'>Map Service</a> &gt; <a href='"
              + contextRoot + "/rest/service/MapService/"
              + 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


      restBody = restBody.replace("${MAP_EXTENT}", mapExtent == null ? ""
          : mapExtent);
      restBody = restBody.replace("${IMAGE_DISPLAY}",
          imageDisplay == null ? "" : imageDisplay);

      ServiceHTML html = new ServiceHTML();
      html.setContextRoot(contextRoot);
      html.setTitle("Identify (" +serviceName+ "}");
      html
          .setCatalog(" &gt; <a href='"
              + contextRoot
              + "/rest/service/MapService'>Map Service</a> &gt; <a href='"
              + contextRoot + "/rest/service/MapService/"
              + serviceName + "'>" + serviceName
              + "</a> &gt; Identify");
      html.setHeader("Identify");
      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/MapService'>Map Service</a> &gt; <a href='"
              + contextRoot + "/rest/service/MapService/"
              + serviceName + "'>" + serviceName
              + "</a> &gt; <a href='" + contextRoot
              + "/rest/service/MapService/" + 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 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/MapService'>Map Service</a> &gt; <a href='"
              + contextRoot + "/rest/service/MapService/"
              + serviceName + "'>" + serviceName
              + "</a> &gt; <a href='" + contextRoot
              + "/rest/service/MapService/" + 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

        restBody += sbResult.toString();
      }

      String contextRoot = context.getContextPath();

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

    return result;
View Full Code Here

      }
      sb.append("</ul>");
      sb.append("<br/><br/>");
      String restBody = sb.toString();

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

    return result;
View Full Code Here

          .replaceAll("'", "&#39;"));
      restBody = restBody.replace("${GEOMETRY}", geometry == null ? ""
          : geometry);
      restBody = restBody.replace("${IN_SR}", inSR == null ? "" : inSR);

      ServiceHTML html = new ServiceHTML();
      html.setContextRoot(contextRoot);
      html.setTitle("Delete 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; Delete Features");
      html.setHeader("Delete 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("Simplify");
      html
          .setCatalog(" &gt; <a href='"
              + contextRoot
              + "/rest/service/GeometryService'>Geometry Service</a> &gt; Simplify");
      html.setHeader("Simplify Geometries");
      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.