Package com.gi.server.rest.html

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


          + "/rest/service/TokenService'>Token Service</a> (Internal)</b>");
      sb.append("<br/><br/>");

      String restBody = sb.toString();

      ServiceHTML html = new ServiceHTML();
      html.setContextRoot(contextRoot);
      html.setTitle("Service Home");
      html.setCatalog("");
      html.setHeader("Service Home");
      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("Feature Service");
      html.setCatalog(" &gt; Feature Service");
      html.setHeader("Feature Service");
      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/TokenService/verify'>Verify Token</a>");
      sb.append("<br/><br/>");
      String restBody = sb.toString();

      ServiceHTML html = new ServiceHTML();
      html.setContextRoot(contextRoot);
      html.setTitle("Token Service");
      html.setCatalog(" &gt; Token Service");
      html.setHeader("Token Service");
      html.setRestBody(restBody);
      result = html.toString();
    } catch (Exception e) {
      e.printStackTrace();
    }

    return result;
View Full Code Here

      if (token != null) {
        restBody += "<br/><b>Token:</b><br/><div style='color:#33ff33'>"
            + token + "</div>";
      }

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

    return result;
View Full Code Here

              .append("<div style='color:#ffaaaa'>Token is NOT verified.<br/></div>");
        }
      }
      String restBody = sb.toString();

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

    return result;
View Full Code Here

    sb.append("<b>Utilities:</b>");
    sb.append("&nbsp;&nbsp;<a href='" + contextRoot + "/rest/service/UtilService/wkids'>Supported WKIDs</a>");
    sb.append("<br/><br/>");
    String restBody = sb.toString();
   
    ServiceHTML html = new ServiceHTML();
    html.setContextRoot(contextRoot);
    html.setTitle("Utility Service");
    html.setCatalog(" &gt; Utility Service");
    html.setHeader("Utility Service");
    html.setRestBody(restBody);

    return html.toString();
  }
View Full Code Here

        restBody += sbResult.toString();
      }

      String contextRoot = context.getContextPath();

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