JCLOUDS-948: Atmos Cache-Control support

Not supported.
This commit is contained in:
Andrew Gaul 2016-01-15 04:12:32 -08:00
parent 5fd7b1aa78
commit 77d3db0058
2 changed files with 18 additions and 1 deletions

View File

@ -131,10 +131,14 @@ public class DelegatingMutableContentMetadata implements MutableContentMetadata
return delegate;
}
@Override
public void setCacheControl(String cacheControl) {
delegate.setCacheControl(cacheControl);
}
@Override
public void setContentDisposition(String contentDisposition) {
delegate.setContentDisposition(contentDisposition);
}
@Override
@ -147,6 +151,11 @@ public class DelegatingMutableContentMetadata implements MutableContentMetadata
delegate.setContentLanguage(contentLanguage);
}
@Override
public String getCacheControl() {
return delegate.getCacheControl();
}
@Override
public String getContentDisposition() {
return delegate.getContentDisposition();

View File

@ -16,6 +16,7 @@
*/
package org.jclouds.atmos.blobstore.integration;
import static org.assertj.core.api.Assertions.assertThat;
import static org.testng.Assert.assertEquals;
import java.io.IOException;
@ -76,6 +77,13 @@ public class AtmosIntegrationLiveTest extends BaseBlobIntegrationTest {
// not supported
}
// not supported
@Override
protected void checkCacheControl(Blob blob, String cacheControl) {
assertThat(blob.getPayload().getContentMetadata().getCacheControl()).isNull();
assertThat(blob.getMetadata().getContentMetadata().getCacheControl()).isNull();
}
// not supported
@Override
protected void checkContentDisposition(Blob blob, String contentDisposition) {