Package io.fathom.http

Examples of io.fathom.http.HttpRequest


    public MetadataClient(HttpClient httpClient, URI baseUri) {
        super(httpClient, baseUri);
    }

    public Metadata getMetadata() throws RestClientException {
        HttpRequest request = buildGet("openstack/latest/meta_data.json");

        String json = doStringRequest(request);

        JsonObject metadata = (JsonObject) new JsonParser().parse(json);
View Full Code Here


        return new Metadata(metadata);
    }

    public String getSecretString(String key) throws RestClientException {
        HttpRequest request = buildGet("openstack/latest/secret/" + key);

        return doStringRequest(request);
    }
View Full Code Here

TOP

Related Classes of io.fathom.http.HttpRequest

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.