Package org.brickred.socialauth.exception

Examples of org.brickred.socialauth.exception.ServerDataException


      p.setProviderId(getProviderId());
      userProfile = p;
      return p;

    } catch (Exception ex) {
      throw new ServerDataException(
          "Failed to parse the user profile json : " + presp, ex);
    }
  }
View Full Code Here


    try {
      root = XMLParseUtil.loadXmlResource(serviceResponse
          .getInputStream());
    } catch (Exception e) {
      throw new ServerDataException(
          "Failed to parse the contacts from response."
              + CONTACTS_FEED_URL, e);
    }
    NodeList contactsList = root.getElementsByTagName("entry");
    if (contactsList != null && contactsList.getLength() > 0) {
View Full Code Here

      }
      profile.setProviderId(getProviderId());
      userProfile = profile;
      return profile;
    } catch (Exception e) {
      throw new ServerDataException(
          "Failed to parse the user profile json : " + result, e);

    }
  }
View Full Code Here

    Element root;
    try {
      root = XMLParseUtil.loadXmlResource(serviceResponse
          .getInputStream());
    } catch (Exception e) {
      throw new ServerDataException(
          "Failed to parse the contacts from response." + url, e);
    }
    NodeList contactsList = root.getElementsByTagName("contact");
    if (contactsList != null && contactsList.getLength() > 0) {
      LOG.debug("Found contacts : " + contactsList.getLength());
View Full Code Here

   * @throws Exception
   */
  @Override
  public Response updateStatus(final String msg) throws Exception {
    if (msg == null || msg.trim().length() == 0) {
      throw new ServerDataException("Status cannot be blank");
    }
    String url = String.format(UPDATE_STATUS_URL,
        accessToken.getAttribute("xoauth_yahoo_guid"));
    LOG.info("Updating status " + msg + " on " + url);
    String msgBody = "{\"status\":{\"message\":\"" + msg + "\"}}";
View Full Code Here

      }
      profile.setProviderId(getProviderId());
      userProfile = profile;
      return profile;
    } catch (Exception e) {
      throw new ServerDataException(
          "Failed to parse the user profile json : " + result, e);

    }
  }
View Full Code Here

    Element root;
    try {
      root = XMLParseUtil.loadXmlResource(response.getInputStream());
    } catch (Exception e) {
      throw new ServerDataException(
          "Failed to parse the albums from response." + ALBUMS_URL, e);
    }

    List<Album> albums = new ArrayList<Album>();
View Full Code Here

    Element root;
    try {
      root = XMLParseUtil.loadXmlResource(response.getInputStream());
    } catch (Exception e) {
      throw new ServerDataException(
          "Failed to parse the photos from response." + PHOTOS_URL
              + id, e);
    }

    List<Photo> photos = new ArrayList<Photo>();
View Full Code Here

    Element root;
    try {
      root = XMLParseUtil.loadXmlResource(serviceResponse
          .getInputStream());
    } catch (Exception e) {
      throw new ServerDataException(
          "Failed to parse the career details from response."
              + PROFILE_URL, e);
    }
    Career career = null;
    if (root != null) {
View Full Code Here

      root = XMLParseUtil.loadXmlResource(serviceResponse
          .getInputStream());
      list = getStatusFeed(root);

    } catch (Exception e) {
      throw new ServerDataException(
          "Failed to parse the feeds from response." + FEED_URL, e);
    }
    return list;
  }
View Full Code Here

TOP

Related Classes of org.brickred.socialauth.exception.ServerDataException

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.