Package com.microsoft.windowsazure.services.blob.models

Examples of com.microsoft.windowsazure.services.blob.models.CreateBlobResult


        // Arrange
        Configuration config = createConfiguration();
        BlobContract service = BlobService.create(config);

        // Act
        CreateBlobResult createBlobResult = service.createBlockBlob(
                TEST_CONTAINER_FOR_BLOBS, "test2", new ByteArrayInputStream(
                        "some content".getBytes()));

        // Assert
        assertNotNull(createBlobResult);
        assertNotNull(createBlobResult.getEtag());
    }
View Full Code Here


                : contentStream);
        ClientResponse clientResponse = builder.put(ClientResponse.class,
                contentObject);
        throwIfError(clientResponse);

        CreateBlobResult createBlobResult = new CreateBlobResult();
        createBlobResult.setEtag(clientResponse.getHeaders().getFirst("ETag"));
        createBlobResult.setLastModified(dateMapper.parse(clientResponse
                .getHeaders().getFirst("Last-Modified")));

        return createBlobResult;
    }
View Full Code Here

TOP

Related Classes of com.microsoft.windowsazure.services.blob.models.CreateBlobResult

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.