Tabnine Logo
S3MetadataFeature.<init>
Code IndexAdd Tabnine to your IDE (free)

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

Best Java code snippets using ch.cyberduck.core.s3.S3MetadataFeature.<init> (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<init>

Popular methods of S3MetadataFeature

  • getMetadata

Popular in Java

  • Start an intent from android
  • getExternalFilesDir (Context)
  • getSharedPreferences (Context)
  • setContentView (Activity)
  • FlowLayout (java.awt)
    A flow layout arranges components in a left-to-right flow, much like lines of text in a paragraph. F
  • Window (java.awt)
    A Window object is a top-level window with no borders and no menubar. The default layout for a windo
  • BufferedWriter (java.io)
    Wraps an existing Writer and buffers the output. Expensive interaction with the underlying reader is
  • String (java.lang)
  • LogFactory (org.apache.commons.logging)
    Factory for creating Log instances, with discovery and configuration features similar to that employ
  • Loader (org.hibernate.loader)
    Abstract superclass of object loading (and querying) strategies. This class implements useful common
  • Top Vim plugins
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