Examples of PrimalAuthenticationException


Examples of com.insightng.thirdparty.primal.exception.PrimalAuthenticationException

      final int httpCode = httpClient.executeMethod(method);
      logger.debug("http response code:" + httpCode);
      if (HTTP_CREATED != httpCode) {
        if (HTTP_UNAUTHORIZED == httpCode) {
          throw new PrimalAuthenticationException();
        } else {
          throw new PrimalException("error executing content source creation request", httpCode);
        }
      }
    } catch (final HttpException e) {
View Full Code Here

Examples of com.insightng.thirdparty.primal.exception.PrimalAuthenticationException

          sources.add(vf.createURI(entry.getKey()));
        }
        return sources;
      }
      else if (HTTP_UNAUTHORIZED == httpCode) {
        throw new PrimalAuthenticationException();
      } else {
        throw new PrimalException("error retrieving content sources", httpCode);
      }

    } catch (final HttpException e) {
View Full Code Here

Examples of com.insightng.thirdparty.primal.exception.PrimalAuthenticationException

        }
        logger.debug("response processing complete");
      } else {
        logger.warn("response not ok " + httpCode);
        if (HTTP_UNAUTHORIZED == httpCode) {
          throw new PrimalAuthenticationException();
        } else {
          throw new PrimalException("error retrieving results.", httpCode);
        }
      }
    } catch (final HttpException e) {
View Full Code Here

Examples of com.insightng.thirdparty.primal.exception.PrimalAuthenticationException

      final int httpCode = httpClient.executeMethod(method);
      logger.debug("http response code:" + httpCode);
      if (HTTP_CREATED != httpCode) {
        if (HTTP_UNAUTHORIZED == httpCode) {
          throw new PrimalAuthenticationException();
        } else {
          throw new PrimalException("error executing add request", httpCode);
        }
      }
    } catch (final HttpException e) {
View Full Code Here

Examples of com.insightng.thirdparty.primal.exception.PrimalAuthenticationException

      final int httpCode = httpClient.executeMethod(method);
      logger.debug("http response code:" + httpCode);
      if (HTTP_OK != httpCode) {
        if (HTTP_UNAUTHORIZED == httpCode) {
          throw new PrimalAuthenticationException();
        } else {
          throw new PrimalException("error executing delete request.", httpCode);
        }
      }
    } catch (final HttpException e) {
View Full Code Here

Examples of com.insightng.thirdparty.primal.exception.PrimalAuthenticationException

      final int httpCode = httpClient.executeMethod(method);
      logger.debug("http response code:" + httpCode);
      if (HTTP_OK != httpCode) {
        if (HTTP_UNAUTHORIZED == httpCode) {
          throw new PrimalAuthenticationException();
        } else {
          logger.debug(method.getResponseBodyAsString());
          throw new PrimalException("error executing deleteUSer request", httpCode);
        }
      }
View Full Code Here

Examples of com.insightng.thirdparty.primal.exception.PrimalAuthenticationException

      final int httpCode = httpClient.executeMethod(method);
      logger.debug("http response code:" + httpCode);
      if (HTTP_CREATED != httpCode) {
        if (HTTP_UNAUTHORIZED == httpCode) {
          throw new PrimalAuthenticationException();
        } else {
          logger.debug(method.getResponseBodyAsString());
          throw new PrimalException("error executing createUser request", httpCode);
        }
      } else {
View Full Code Here

Examples of com.insightng.thirdparty.primal.exception.PrimalAuthenticationException

      final int httpCode = httpClient.executeMethod(method);
      logger.debug("http response code:" + httpCode);
      if (HTTP_OK != httpCode) {
        if (HTTP_UNAUTHORIZED == httpCode) {
          throw new PrimalAuthenticationException();
        } else {
          logger.debug(method.getResponseBodyAsString());
          throw new PrimalException("error executing change password request", httpCode);
        }
      }
View Full Code Here

Examples of com.insightng.thirdparty.primal.exception.PrimalAuthenticationException

      configureRequest(method);
      logRequestDetails(method, PRIMAL_USER_API_URL);
      final int httpCode = httpClient.executeMethod(method);
      if (HTTP_OK != httpCode) {
        if (HTTP_UNAUTHORIZED == httpCode) {
          throw new PrimalAuthenticationException();
        } else {
          logger.error("error retrieving users: " +  method.getResponseBodyAsString());
          throw new PrimalException("error retrieving users", httpCode);
        }
      } else {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.