Package org.openstack.client.common

Examples of org.openstack.client.common.RequestBuilder


      openstackProperties.getCustomProperties().put(key, entry.getValue());
    }

    log.info("Uploading to " + getContainerName() + "/" + objectPath);

    RequestBuilder requestBuilder = getStorageClient(request.target).root().containers().id(getContainerName())
        .objects().buildPutRequest(openstackProperties);

    CurlRequest curlRequest = ((RemoteCurlOpenstackRequest) requestBuilder).toCurlRequest();
    curlRequest.bodyFromStdin = true;
View Full Code Here


    RemoteCurlOpenstackSession session = new RemoteCurlOpenstackSession(target);
    session.authenticate(credentials, false);

    OpenstackStorageClient storageClient = session.getStorageClient();

    RequestBuilder request = storageClient.root().containers().id(containerName).objects().id(objectPath)
        .buildDownloadRequest();

    CurlRequest curlRequest = session.toCurlRequest(request);
    curlRequest.bareRequest = true;
View Full Code Here

TOP

Related Classes of org.openstack.client.common.RequestBuilder

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.