Package org.exoplatform.social.client.api.auth

Examples of org.exoplatform.social.client.api.auth.NotFoundException


  public static void handleError(HttpResponse response) throws SocialClientLibException {
    int statusCode = response.getStatusLine().getStatusCode();

    if (statusCode != 200) {
      if(statusCode == 404){
        throw new SocialClientLibException(response.getStatusLine().toString(), new NotFoundException());
      } else if(statusCode == 403){
        throw new SocialClientLibException(response.getStatusLine().toString(), new AccessDeniedException());
      } else if(statusCode == 401){
        throw new SocialClientLibException(response.getStatusLine().toString(), new UnAuthenticatedException());
      } else {
View Full Code Here


  public static void handleErrorWithRedirect(HttpResponse response) throws SocialClientLibException, RedirectException {
    int statusCode = response.getStatusLine().getStatusCode();

    if (statusCode != 200) {
      if(statusCode == 404){
        throw new SocialClientLibException(response.getStatusLine().toString(), new NotFoundException());
      } else if(statusCode == 403){
        throw new SocialClientLibException(response.getStatusLine().toString(), new AccessDeniedException());
      } else if(statusCode == 401){
        throw new SocialClientLibException(response.getStatusLine().toString(), new UnAuthenticatedException());
      } else if (statusCode == 301) {
View Full Code Here

TOP

Related Classes of org.exoplatform.social.client.api.auth.NotFoundException

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.