Package org.platformlayer.rest

Examples of org.platformlayer.rest.RestClientException


      StatusLine statusLine = response.getStatusLine();
      if (statusLine.getStatusCode() != 200) {
        log.info("Error reading from metrics service: " + statusLine);

        throw new RestClientException("Error reading from metrics service", null, statusLine.getStatusCode());
      } else {
        MetricServiceData ret = new MetricServiceData(request, response);

        response = null; // Don't close yet

        return ret;
      }
    } catch (IOException e) {
      throw new RestClientException("Error reading from metrics service", e);
    } finally {
      if (response != null) {
        try {
          EntityUtils.consume(response.getEntity());
        } catch (IOException e) {
View Full Code Here

TOP

Related Classes of org.platformlayer.rest.RestClientException

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.