@Test public void testPostChecksum() throws Exception { final StorageObject o = new StorageObject("f"); o.setMd5sum("d41d8cd98f00b204e9800998ecf8427e"); new SwiftSmallObjectUploadFeature(new SwiftWriteFeature( session, new SwiftRegionService(session))).post( new Path("/f", EnumSet.of(Path.Type.file)), MessageDigest.getInstance("MD5"), o ); }
@Override protected void post(final Path file, final MessageDigest digest, final StorageObject response) throws BackgroundException { this.verify(file, digest, Checksum.parse(response.getMd5sum())); }
SwiftSmallObjectUploadFeature extends HttpUploadFeature<StorageObject, MessageDigest> { @Override protected void post(final Path file, final MessageDigest digest, final StorageObject response) throws BackgroundException { this.verify(file, digest, Checksum.parse(response.getMd5sum())); } }
SwiftSmallObjectUploadFeature extends HttpUploadFeature<StorageObject, MessageDigest> { @Override protected void post(final Path file, final MessageDigest digest, final StorageObject response) throws BackgroundException { this.verify(file, digest, Checksum.parse(response.getMd5sum())); } SwiftSmallObjectUploadFeature(final Write<StorageObject> writer); }
SwiftSmallObjectUploadFeature extends HttpUploadFeature<StorageObject, MessageDigest> { @Override protected void post(final Path file, final MessageDigest digest, final StorageObject response) throws BackgroundException { this.verify(file, digest, Checksum.parse(response.getMd5sum())); } SwiftSmallObjectUploadFeature(final Write<StorageObject> writer);  }
SwiftSmallObjectUploadFeature extends HttpUploadFeature<StorageObject, MessageDigest> { @Override protected void post(final Path file, final MessageDigest digest, final StorageObject response) throws BackgroundException { this.verify(file, digest, Checksum.parse(response.getMd5sum())); } SwiftSmallObjectUploadFeature(final Write<StorageObject> writer);   }