Package it.geosolutions.geoserver.rest.encoder.authorityurl

Examples of it.geosolutions.geoserver.rest.encoder.authorityurl.GSAuthorityURLInfoEncoder


              String name = kvp1[1].replace("\"", "");
              String[] kvp2 = props[1].split("\":");
              String href = kvp2[1].replace("\"", "");
   
              authorityURLList
                  .add(new GSAuthorityURLInfoEncoder(
                      name, href));
            }
          }
        }
      }
View Full Code Here


        layerEncoder.setDefaultStyle("point");
        layerEncoder.addStyle("point2");
        layerEncoder.addStyle("point3");

        // authorityURL
        GSAuthorityURLInfoEncoder authorityURL = new GSAuthorityURLInfoEncoder("authority1",
                "http://www.authority1.org");
        layerEncoder.addAuthorityURL(authorityURL);

        // identifier
        GSIdentifierInfoEncoder identifier1 = new GSIdentifierInfoEncoder("authority1",
View Full Code Here

  @Before
  public void setup() {
    layerEncoder = new GSLayerEncoder21();
    layerEncoder.setAdvertised(true);
    layerEncoder.addAuthorityURL(new GSAuthorityURLInfoEncoder(
        "authority1", "http://www.authority1.org"));
    layerEncoder.addIdentifier(new GSIdentifierInfoEncoder("authority1",
        "identifier1"));
    layerEncoder.addAuthorityURL(new GSAuthorityURLInfoEncoder(
        "authority2", "http://www.authority2.org"));
    layerEncoder.addIdentifier(new GSIdentifierInfoEncoder("authority2",
        "identifier2"));
    layerEncoder.addIdentifier(new GSIdentifierInfoEncoder("authority2",
        "additionalId"));
View Full Code Here

   
    layerEncoder.setDefaultStyle("point");
    layerEncoder.addStyle("additional_style1");
    layerEncoder.addStyle("additional_style2");
   
    layerEncoder.addAuthorityURL(new GSAuthorityURLInfoEncoder(
        "authority1", "http://www.authority1.org"));
    layerEncoder.addIdentifier(new GSIdentifierInfoEncoder("authority1",
        "identifier1"));
  }
View Full Code Here

      final List<Element> authorityURLs = authorityURLsRoot.getChildren();
      if (authorityURLs != null) {
        authorityURLList = new ArrayList<GSAuthorityURLInfoEncoder>(
            authorityURLs.size());
        for (Element authorityURL : authorityURLs) {
          final GSAuthorityURLInfoEncoder authEnc = new GSAuthorityURLInfoEncoder();
          authEnc.setName(authorityURL
              .getChildText(AuthorityURLInfo.name.name()));
          authEnc.setHref(authorityURL
              .getChildText(AuthorityURLInfo.href.name()));
          authorityURLList.add(authEnc);
        }
      }
    }
View Full Code Here

TOP

Related Classes of it.geosolutions.geoserver.rest.encoder.authorityurl.GSAuthorityURLInfoEncoder

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.