@Override public Optional<String> contentEncoding() { return Optional.fromNullable(info.getContentEncoding()); }
tgtInfoBuilder.setContentEncoding(blobInfo.getContentEncoding());
assertEquals(expected.getCacheControl(), value.getCacheControl()); assertEquals(expected.getContentDisposition(), value.getContentDisposition()); assertEquals(expected.getContentEncoding(), value.getContentEncoding()); assertEquals(expected.getContentLanguage(), value.getContentLanguage()); assertEquals(expected.getCustomerEncryption(), value.getCustomerEncryption());
@Override public Optional<String> contentEncoding() { return Optional.fromNullable(info.getContentEncoding()); }
assertEquals(CACHE_CONTROL, BLOB_INFO.getCacheControl()); assertEquals(CONTENT_DISPOSITION, BLOB_INFO.getContentDisposition()); assertEquals(CONTENT_ENCODING, BLOB_INFO.getContentEncoding()); assertEquals(CONTENT_LANGUAGE, BLOB_INFO.getContentLanguage()); assertEquals(CUSTOMER_ENCRYPTION, BLOB_INFO.getCustomerEncryption()); assertNull(DIRECTORY_INFO.getCacheControl()); assertNull(DIRECTORY_INFO.getContentDisposition()); assertNull(DIRECTORY_INFO.getContentEncoding()); assertNull(DIRECTORY_INFO.getContentLanguage()); assertNull(DIRECTORY_INFO.getCustomerEncryption());
assertNull(blobInfo.getCacheControl()); assertNull(blobInfo.getContentDisposition()); assertNull(blobInfo.getContentEncoding()); assertNull(blobInfo.getContentLanguage()); assertNull(blobInfo.getCustomerEncryption());
tgtInfoBuilder.setContentEncoding(blobInfo.getContentEncoding());