@Override protected void logout() throws BackgroundException { try { client.shutdown(); } catch(ServiceException e) { throw new S3ExceptionMappingService().map(e); } }
public S3TouchFeature(final S3Session session) { this.session = session; this.writer = new S3WriteFeature(session, new S3DisabledMultipartService()); }
@Override public String getAuthorization() { return S3Protocol.AuthenticationHeaderSignatureVersion.AWS2.name(); } }
public Path copy(final Path source, final Path copy, final TransferStatus status, final ConnectionCallback callback) throws BackgroundException { if(status.getLength() > multipartThreshold) { return new S3MultipartCopyFeature(session, accessControlListFeature).copy(source, copy, status, callback); } else { return new S3CopyFeature(session, accessControlListFeature).copy(source, copy, status, callback); } } }
public SpectraDeleteFeature(final SpectraSession session) { super(session, new S3DisabledMultipartService()); this.session = session; }
public S3MoveFeature(final S3Session session, final S3AccessControlListFeature accessControlListFeature) { this.session = session; this.accessControlListFeature = accessControlListFeature; this.delete = new S3DefaultDeleteFeature(session); }
@Override public String favicon() { // Return static icon as endpoint has no favicon configured return this.icon(); }
public S3ThresholdUploadService(final S3Session session, final Long multipartThreshold) { this.session = session; this.multipartThreshold = multipartThreshold; this.writer = new S3WriteFeature(session); }
@Override public Find withCache(final Cache<Path> cache) { attributes.withCache(cache); return this; } }
public S3MultipartUploadService(final S3Session session, final Write<StorageObject> writer, final Long partsize, final Integer concurrency) { super(writer); this.session = session; this.multipartService = new S3DefaultMultipartService(session); this.writer = writer; this.partsize = partsize; this.concurrency = concurrency; }
/** * @return header prefix for general Google Storage headers: x-goog-. */ @Override public String getRestHeaderPrefix() { return session.getRestHeaderPrefix(); }
@Override public VersionId getStatus() { return proxy.getVersionId(); } };
/** * @return the identifier for the signature algorithm. */ @Override protected String getSignatureIdentifier() { return session.getSignatureIdentifier(); }
public S3MultipleDeleteFeature(final S3Session session, final S3MultipartService multipartService) { this.session = session; this.multipartService = multipartService; this.versioningService = session.getFeature(Versioning.class); }
/** * @return header prefix for Google Storage metadata headers: x-goog-meta-. */ @Override public String getRestMetadataPrefix() { return session.getRestMetadataPrefix(); }
@Override public Void pre(final Transfer.Type type, final Map<TransferItem, TransferStatus> files, final ConnectionCallback callback) throws BackgroundException { this.configure(files, callback, true); return null; }
public S3TokenExpiredResponseInterceptor(final S3Session session, final LoginCallback prompt) { this.host = session.getHost(); this.prompt = prompt; }
@Override protected XmlResponsesSaxParser getXmlResponseSaxParser() throws ServiceException { return session.getXmlResponseSaxParser(); }
@Override public String getAuthorization() { return S3Protocol.AuthenticationHeaderSignatureVersion.AWS2.name(); } }
@Override public ListService withCache(final Cache<Path> cache) { attributes.withCache(cache); return this; }