Package org.springframework.social

Examples of org.springframework.social.ApiException


  }
 
  private void handleExceptionFromFilterChain(Exception e, HttpServletRequest httpRequest, HttpServletResponse httpResponse) throws IOException, ServletException {
    RuntimeException ase = (ApiException) throwableAnalyzer.getFirstThrowableOfType(ApiException.class, throwableAnalyzer.determineCauseChain(e));
    if (ase != null && ase instanceof ApiException) {
      ApiException apiException = (ApiException) ase;
      if (logger.isDebugEnabled()) {
        logger.debug("API Exception: " + e.getMessage());
      }
      if (apiException instanceof NotAuthorizedException || apiException instanceof OperationNotPermittedException) {
        if (logger.isDebugEnabled()) {
          logger.debug("Redirecting for refresh of " + apiException.getProviderId() + " connection.");
        }
        httpResponse.sendRedirect(getRefreshUrl(httpRequest, apiException));
        return;
      }
    }
View Full Code Here


  }
 
  private void handleExceptionFromFilterChain(Exception e, HttpServletRequest httpRequest, HttpServletResponse httpResponse) throws IOException, ServletException {
    RuntimeException ase = (ApiException) throwableAnalyzer.getFirstThrowableOfType(ApiException.class, throwableAnalyzer.determineCauseChain(e));
    if (ase != null && ase instanceof ApiException) {
      ApiException apiException = (ApiException) ase;
      if (logger.isDebugEnabled()) {
        logger.debug("API Exception: " + e.getMessage());
      }
      if (apiException instanceof NotAuthorizedException || apiException instanceof OperationNotPermittedException) {
        if (logger.isDebugEnabled()) {
          logger.debug("Redirecting for refresh of " + apiException.getProviderId() + " connection.");
        }
        httpResponse.sendRedirect(getRefreshUrl(httpRequest, apiException));
        return;
      }
    }
View Full Code Here

TOP

Related Classes of org.springframework.social.ApiException

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.