Package ar.com.restba

Examples of ar.com.restba.RestBAClient


*/
public class SimpleQuery {

  public static void main(String[] args) {

    RestBAClient dataBairesClient = new DefaultRestBAClient();
    String query = "gcba/metadata/_search?&from=0";

    JsonObject q = dataBairesClient.executeQuery(query, JsonObject.class);
   
    System.out.println("JSON object: " + q.toString());
  }
View Full Code Here


* nombre del responsable, etc.
* */
public class ListObrasRegistradas {

  public static void main(String[] args) {
    RestBAClient dataBairesClient = new DefaultRestBAClient();
    String query = "gcba/obras-registradas/_search?";

    RestBAConnection<ObraRegistrada> fetchConnectionRestBA = dataBairesClient
        .fetchConnectionRestBA(query, ObraRegistrada.class);

    for (List<ObraRegistrada> page : fetchConnectionRestBA) {
      for (ObraRegistrada obraRegistrada : page) {
        System.out.println(obraRegistrada.getDireccion());
View Full Code Here

*/
public class ListMetadatosJson {

  public static void main(String[] args) {

    RestBAClient dataBairesClient = new DefaultRestBAClient();
    String query = "gcba/metadata/_search?";

    RestBAConnection<JsonObject> fetchConnectionRestBA = dataBairesClient
        .fetchConnectionRestBA(query, JsonObject.class);

    for (List<JsonObject> page : fetchConnectionRestBA) {
      for (JsonObject metadato : page) {
        System.out.println("Author: " + metadato.getString("author")
View Full Code Here

TOP

Related Classes of ar.com.restba.RestBAClient

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.