Package org.apache.cloudstack.api.response

Examples of org.apache.cloudstack.api.response.S3Response


            throw new ServerApiException(ApiErrorCode.INTERNAL_ERROR, "Failed to add S3 due to " + e.getMessage());

        }

        final S3Response response = _responseGenerator.createS3Response(result);
        response.setResponseName(this.getCommandName());
        this.setResponseObject(response);

    }
View Full Code Here


        if (result != null) {

            for (S3 s3 : result) {

                S3Response s3Response = _responseGenerator.createS3Response(s3);
                s3Response.setResponseName(this.getCommandName());
                s3Response.setObjectName("s3");
                s3Responses.add(s3Response);

            }

        }
View Full Code Here

    }

    @Override
    public S3Response createS3Response(final S3 result) {

        final S3Response response = new S3Response();

        response.setAccessKey(result.getAccessKey());
        response.setConnectionTimeout(result.getConnectionTimeout());
        response.setEndPoint(result.getEndPoint());
        response.setHttpsFlag(result.getHttpsFlag());
        response.setMaxErrorRetry(result.getMaxErrorRetry());
        response.setObjectId(result.getUuid());
        response.setSecretKey(result.getSecretKey());
        response.setSocketTimeout(result.getSocketTimeout());
        response.setTemplateBucketName(result.getBucketName());

        return response;

    }
View Full Code Here

TOP

Related Classes of org.apache.cloudstack.api.response.S3Response

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.