Tabnine Logo
S3MetadataFeature
Code IndexAdd Tabnine to your IDE (free)

How to use
S3MetadataFeature
in
ch.cyberduck.core.s3

Best Java code snippets using ch.cyberduck.core.s3.S3MetadataFeature (Showing top 3 results out of 315)

origin: iterate-ch/cyberduck

@Override
public Path copy(final Path source, final Path target, final TransferStatus status, final ConnectionCallback callback) throws BackgroundException {
  if(source.isFile() || source.isPlaceholder()) {
    if(null == status.getStorageClass()) {
      // Keep same storage class
      status.setStorageClass(new S3StorageClassFeature(session).getClass(source));
    }
    if(Encryption.Algorithm.NONE == status.getEncryption()) {
      // Keep encryption setting
      status.setEncryption(new S3EncryptionFeature(session).getEncryption(source));
    }
    if(Acl.EMPTY == status.getAcl()) {
      // Apply non standard ACL
      try {
        status.setAcl(accessControlListFeature.getPermission(source));
      }
      catch(AccessDeniedException | InteroperabilityException e) {
        log.warn(String.format("Ignore failure %s", e.getDetail()));
      }
    }
    final S3Object destination = new S3WriteFeature(session).getDetails(target, status);
    destination.setAcl(accessControlListFeature.convert(status.getAcl()));
    destination.setBucketName(containerService.getContainer(target).getName());
    destination.replaceAllMetadata(new HashMap<String, Object>(new S3MetadataFeature(session, accessControlListFeature).getMetadata(source)));
    final String version = this.copy(source, destination, status);
    target.attributes().setVersionId(version);
  }
  return target;
}
origin: iterate-ch/cyberduck

return (T) new S3MetadataFeature(this, new S3AccessControlListFeature(this));
return (T) new S3MetadataFeature(this, new S3AccessControlListFeature(this));
origin: iterate-ch/cyberduck

return (T) new S3MetadataFeature(this, new GoogleStorageAccessControlListFeature(this));
return (T) new S3MetadataFeature(this, new GoogleStorageAccessControlListFeature(this));
ch.cyberduck.core.s3S3MetadataFeature

Most used methods

  • <init>
  • getMetadata

Popular in Java

  • Finding current android device location
  • setRequestProperty (URLConnection)
  • scheduleAtFixedRate (Timer)
  • getExternalFilesDir (Context)
  • EOFException (java.io)
    Thrown when a program encounters the end of a file or stream during an input operation.
  • SocketTimeoutException (java.net)
    This exception is thrown when a timeout expired on a socket read or accept operation.
  • Scanner (java.util)
    A parser that parses a text string of primitive types and strings with the help of regular expressio
  • SortedSet (java.util)
    SortedSet is a Set which iterates over its elements in a sorted order. The order is determined eithe
  • JFrame (javax.swing)
  • Join (org.hibernate.mapping)
  • Top 12 Jupyter Notebook extensions
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now