Package org.geotools.gtcatalog

Examples of org.geotools.gtcatalog.Service


   
    out.println("<html><body>");
    out.println(services.size() + " services found.<br>");
   
    for (Iterator itr = services.iterator(); itr.hasNext();) {
      Service service = (Service)itr.next();
      out.println("<a href=\"" + service.getIdentifier() + "\">"+service.getInfo(null).getTitle()+ "</a><br>");
    }
   
   
    out.println("</body></html>");
    out.close();
View Full Code Here


  public void replace(URI id, Service service) throws UnsupportedOperationException {
    if (id == null)
      return;
   
    for (int i = 0; i < services.size(); i++) {
      Service replacee = (Service)services.get(i);
      if (id.equals(replacee.getIdentifier())) {
        services.set(i,service);
      }
    }
  }
View Full Code Here

    if (query == null)
      return Collections.EMPTY_LIST;
   
    ArrayList matched = new ArrayList();
    for (int i = 0; i < services.size(); i++) {
      Service service = (Service)services.get(i);
      if (query.equals(service.getIdentifier())) {
        matched.add(service);
      }
    }
   
    return matched;
View Full Code Here

   
    ServletOutputStream out = response.getOutputStream();
   
    if (services != null && !services.isEmpty()) {
      for (Iterator itr = services.iterator(); itr.hasNext();) {
        Service service = (Service) itr.next();
       
        //force conection to service to make sure its a valid handle
        try {
          service.members(null);
     
          catalog.add(service);
          out.println("Added " + service.getIdentifier());
        }
        catch(Throwable t) {
          //ok, continue
        }
      }
View Full Code Here

TOP

Related Classes of org.geotools.gtcatalog.Service

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.