Package com.ibm.sbt.services.client.base.datahandlers

Examples of com.ibm.sbt.services.client.base.datahandlers.JsonDataHandler


    return (ActivityStreamEntity)super.getEntity(data);
  }
 
  @Override
  protected ArrayList<ActivityStreamEntity> createEntities() {
    JsonDataHandler dataHandler = new JsonDataHandler(getData());
    ArrayList<ActivityStreamEntity> activityStreams = new ArrayList<ActivityStreamEntity>();
    List<JsonJavaObject> entries = dataHandler.getEntries(ASJsonPath.Entry);
    for (JsonJavaObject entry: entries) {
      ActivityStreamEntity activityStream = getEntity(entry);
      activityStreams.add(activityStream);
    }
    return activityStreams;
View Full Code Here


    return activityStreams;
  }
 
  @Override
  public int getTotalResults() {
    JsonDataHandler dataHandler = new JsonDataHandler(getData());
    return dataHandler.getAsInt("totalResults");
  }
View Full Code Here

    return dataHandler.getAsInt("totalResults");
  }

  @Override
  public int getStartIndex() {
    JsonDataHandler dataHandler = new JsonDataHandler(getData());
    return dataHandler.getAsInt("startIndex");
  }
View Full Code Here

    return dataHandler.getAsInt("startIndex");
  }

  @Override
  public int getItemsPerPage() {
    JsonDataHandler dataHandler = new JsonDataHandler(getData());
    return dataHandler.getAsInt("itemsPerPage");
  }
View Full Code Here

   */
  public String getMyUserId() throws ClientServicesException{
    String id = "";
    String peopleApiUrl = ProfileUrls.MY_USER_ID.format(this);
    Response feed = getClientService().get(peopleApiUrl);
    JsonDataHandler dataHandler = new JsonDataHandler((JsonJavaObject)feed.getData());
    id = dataHandler.getAsString("entry/id");
    id = id.substring(id.lastIndexOf(CH_COLON)+1, id.length());
    return id;
  }
View Full Code Here

TOP

Related Classes of com.ibm.sbt.services.client.base.datahandlers.JsonDataHandler

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.