Package co.cask.cdap.passport.meta

Examples of co.cask.cdap.passport.meta.Account


   * */
  public AccountProvider<Account> getAccount(String apiKey) {
    Preconditions.checkNotNull(apiKey, "ApiKey cannot be null");

    try {
      Account account = accountCache.getIfPresent(apiKey);
      if (account == null) {
        String data = httpGet(API_BASE + "whois", apiKey);
        if (data != null) {
          Gson gson  = new GsonBuilder().setFieldNamingPolicy(FieldNamingPolicy.LOWER_CASE_WITH_UNDERSCORES).create();
          account = gson.fromJson(data, Account.class);
View Full Code Here

TOP

Related Classes of co.cask.cdap.passport.meta.Account

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.