Package io.fathom.cloud.openstack.client

Examples of io.fathom.cloud.openstack.client.RestClientException


            InputStream is;
            try {
                is = response.getInputStream();
            } catch (IOException e) {
                throw new RestClientException("Error reading response", e);
            }
            if (is == null) {
                throw new IllegalStateException();
            }
View Full Code Here


            }
        } catch (RestClientException e) {
            if (ret.isEmpty() && e.is(404)) {
                return null;
            }
            throw new RestClientException("Error listing children", e);
        }
        return ret;
    }
View Full Code Here

        V2AuthRequest.ChallengeResponse challengeResponse = ChallengeResponses.respondToRegistrationChallenge(
                certificateAndKey, registerResponse.challenge);
        registerRequest.challengeResponse = challengeResponse;
        registerResponse = client.register(registerRequest, certificateAndKey);
        if (Strings.isNullOrEmpty(registerResponse.userId)) {
            throw new RestClientException("Unable to register (invalid response)");
        }
    }
View Full Code Here

            return true;
        } catch (RestClientException e) {
            if (e.is(404)) {
                return false;
            }
            throw new RestClientException("Error deleting cloud file", e);
        }
    }
View Full Code Here

        request.setHeader("X-Auth-Token", token);
        try {
            request.setRequestContent(ByteSource.wrap(data));
        } catch (IOException e) {
            throw new RestClientException("Error setting request content", e);
        }

        doStringRequest(request);
    }
View Full Code Here

TOP

Related Classes of io.fathom.cloud.openstack.client.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.