Package org.brickred.socialauth.exception

Examples of org.brickred.socialauth.exception.SocialAuthException


  @Override
  public Response uploadImage(final String message, final String fileName,
      final InputStream inputStream) throws Exception {
    LOG.warn("WARNING: Not implemented for LinkedIn");
    throw new SocialAuthException(
        "Update Image is not implemented for LinkedIn");
  }
View Full Code Here


          }
        }
        list.add(feed);
      }
    } catch (Exception e) {
      throw new SocialAuthException("Error while getting feeds from "
          + FEED_URL, e);
    }
    return list;
  }
View Full Code Here

    LOG.info("Obtaining user profile. Profile URL : " + profileUrl);
    Response serviceResponse = null;
    try {
      serviceResponse = authenticationStrategy.executeFeed(profileUrl);
    } catch (Exception e) {
      throw new SocialAuthException(
          "Failed to retrieve the user profile from  " + profileUrl,
          e);
    }
    if (serviceResponse.getStatus() != 200) {
      throw new SocialAuthException(
          "Failed to retrieve the user profile from  " + profileUrl
              + ". Status :" + serviceResponse.getStatus());
    }

    Element root;
View Full Code Here

   * @throws Exception
   */
  @Override
  public Response updateStatus(final String msg) throws Exception {
    LOG.warn("WARNING: Not implemented for Flickr");
    throw new SocialAuthException(
        "Update Status is not implemented for Flickr");
  }
View Full Code Here

    LOG.info("Obtaining user contacts. Contact URL : " + contactUrl);
    Response serviceResponse = null;
    try {
      serviceResponse = authenticationStrategy.executeFeed(contactUrl);
    } catch (Exception e) {
      throw new SocialAuthException("Failed to retrieve contacts from  "
          + contactUrl, e);
    }
    if (serviceResponse.getStatus() != 200) {
      throw new SocialAuthException("Failed to retrieve contacts from  "
          + contactUrl + ". Status :" + serviceResponse.getStatus());
    }
    String result;
    try {
      result = serviceResponse
          .getResponseBodyAsString(Constants.ENCODING);
    } catch (Exception exc) {
      throw new SocialAuthException("Failed to read response from  "
          + contactUrl, exc);
    }

    Element root;
View Full Code Here

  public Response api(final String url, final String methodType,
      final Map<String, String> params,
      final Map<String, String> headerParams, final String body)
      throws Exception {
    if (!isVerify) {
      throw new SocialAuthException(
          "Please call verifyResponse function first to get Access Token");
    }
    Response response = null;
    LOG.debug("Calling URL : " + url);
    response = authenticationStrategy.executeFeed(url, methodType, params,
View Full Code Here

   */
  @Override
  public Response uploadImage(final String message, final String fileName,
      final InputStream inputStream) throws Exception {
    LOG.warn("WARNING: Not implemented for Flickr");
    throw new SocialAuthException("Not implemented for Flickr");
  }
View Full Code Here

    Response response = null;
    try {
      response = authenticationStrategy.executeFeed(url, methodType,
          params, headerParams, body);
    } catch (Exception e) {
      throw new SocialAuthException(
          "Error while making request to URL : " + url, e);
    }
    return response;
  }
View Full Code Here

    Response response = null;
    try {
      response = authenticationStrategy.executeFeed(url,
          MethodType.GET.toString(), null, null, null);
    } catch (Exception e) {
      throw new SocialAuthException(
          "Error while making request to URL : " + url, e);
    }
    return response;
  }
View Full Code Here

  }

  @Override
  public Response updateStatus(final String msg) throws Exception {
    LOG.warn("WARNING: Not implemented for Google");
    throw new SocialAuthException(
        "Update Status is not implemented for Google");
  }
View Full Code Here

TOP

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

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.