Package org.nuxeo.ecm.core.storage.sql
Class CloudFrontBinaryManager
- java.lang.Object
-
- org.nuxeo.ecm.core.blob.binary.AbstractBinaryManager
-
- org.nuxeo.ecm.core.blob.binary.CachingBinaryManager
-
- org.nuxeo.ecm.blob.AbstractCloudBinaryManager
-
- org.nuxeo.ecm.core.storage.sql.S3BinaryManager
-
- org.nuxeo.ecm.core.storage.sql.CloudFrontBinaryManager
-
- All Implemented Interfaces:
S3ManagedTransfer
,BinaryManager
,BlobProvider
public class CloudFrontBinaryManager extends S3BinaryManager
- Since:
- 9.1
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.nuxeo.ecm.core.storage.sql.S3BinaryManager
S3BinaryManager.S3BinaryGarbageCollector, S3BinaryManager.S3FileStorage
-
-
Field Summary
Fields Modifier and Type Field Description static String
DISTRIB_DOMAIN_PROPERTY
protected String
distributionDomain
static String
ENABLE_CF_ENCODING_FIX
static String
PRIVATE_KEY_ID_PROPERTY
static String
PRIVATE_KEY_PROPERTY
protected PrivateKey
privKey
protected String
privKeyId
protected com.amazonaws.services.cloudfront.util.SignerUtils.Protocol
protocol
static String
PROTOCOL_PROPERTY
-
Fields inherited from class org.nuxeo.ecm.core.storage.sql.S3BinaryManager
ACCELERATE_MODE_PROPERTY, amazonS3, AWS_ID_PROPERTY, AWS_SECRET_PROPERTY, AWS_SESSION_TOKEN_PROPERTY, awsCredentialsProvider, BUCKET_NAME_PROPERTY, BUCKET_PREFIX_PROPERTY, BUCKET_REGION_PROPERTY, bucketName, bucketNamePrefix, clientConfiguration, CONNECTION_MAX_PROPERTY, CONNECTION_RETRY_PROPERTY, CONNECTION_TIMEOUT_PROPERTY, cryptoConfiguration, DELIMITER, DIRECTDOWNLOAD_EXPIRE_PROPERTY_COMPAT, DIRECTDOWNLOAD_PROPERTY_COMPAT, encryptionMaterials, ENDPOINT_PROPERTY, isEncrypted, KEYSTORE_FILE_PROPERTY, KEYSTORE_PASS_PROPERTY, PATHSTYLEACCESS_PROPERTY, PRIVKEY_ALIAS_PROPERTY, PRIVKEY_PASS_PROPERTY, SERVERSIDE_ENCRYPTION_KMS_KEY_PROPERTY, SERVERSIDE_ENCRYPTION_PROPERTY, serverSideKMSKeyID, SOCKET_TIMEOUT_PROPERTY, SYSTEM_PROPERTY_PREFIX, transferManager, USER_AGENT_PREFIX_PROPERTY, USER_AGENT_SUFFIX_PROPERTY, useServerSideEncryption
-
Fields inherited from class org.nuxeo.ecm.blob.AbstractCloudBinaryManager
CACHE_COUNT_PROPERTY, CACHE_MIN_AGE_PROPERTY, CACHE_SIZE_PROPERTY, DEFAULT_CACHE_COUNT, DEFAULT_CACHE_MIN_AGE, DEFAULT_CACHE_SIZE, DEFAULT_DIRECTDOWNLOAD, DEFAULT_DIRECTDOWNLOAD_EXPIRE, DIGEST_ALGORITHM_PROPERTY, directDownload, DIRECTDOWNLOAD_EXPIRE_PROPERTY, DIRECTDOWNLOAD_PROPERTY, directDownloadExpire, namespace, transientFlag
-
Fields inherited from class org.nuxeo.ecm.core.blob.binary.CachingBinaryManager
cachedir, fileCache, fileStorage
-
Fields inherited from class org.nuxeo.ecm.core.blob.binary.AbstractBinaryManager
blobProviderId, DEFAULT_DEPTH, DEFAULT_DIGEST, descriptor, digestPattern, DIGESTS_BY_LENGTH, garbageCollector, MAX_BUF_SIZE, MD5_DIGEST, MD5_DIGEST_LENGTH, MIN_BUF_SIZE, properties, SHA1_DIGEST, SHA1_DIGEST_LENGTH, SHA256_DIGEST, SHA256_DIGEST_LENGTH
-
Fields inherited from interface org.nuxeo.ecm.core.blob.binary.BinaryManager
PROP_KEY, PROP_PATH
-
-
Constructor Summary
Constructors Constructor Description CloudFrontBinaryManager()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected URI
getRemoteUri(String digest, ManagedBlob blob, javax.servlet.http.HttpServletRequest servletRequest)
protected void
setupCloudClient()
Configure Cloud client using properties-
Methods inherited from class org.nuxeo.ecm.core.storage.sql.S3BinaryManager
abortOldMultipartUploadsInternal, abortOldUploads, canAccessBucket, clear, close, copyBlob, getAmazonS3, getAwsCredentialsProvider, getBucketName, getBucketPrefix, getFileStorage, getSystemPropertyPrefix, getTransferManager, instantiateGarbageCollector, isMD5, isMissingKey, lengthOfBlob, removeBinaries, removeBinary, waitForCopyCompletion, writeBlob
-
Methods inherited from class org.nuxeo.ecm.blob.AbstractCloudBinaryManager
getBinaryManager, getBooleanProperty, getContentDispositionHeader, getContentTypeHeader, getDefaultDigestAlgorithm, getIntProperty, getIntProperty, getProperties, getProperty, getProperty, getSystemPropertyName, getURI, initialize, isDirectDownload, isTransient, performsExternalAccessControl, readBlob, supportsUserUpdate, supportsUserUpdateDefaultTrue
-
Methods inherited from class org.nuxeo.ecm.core.blob.binary.CachingBinaryManager
getBinary, getBinary, getFile, initializeCache, initializeCache, initializeCache
-
Methods inherited from class org.nuxeo.ecm.core.blob.binary.AbstractBinaryManager
computeDigestPattern, getBinary, getDescriptor, getDigestAlgorithm, getGarbageCollector, isValidDigest, setDescriptor, storeAndDigest, toHexString
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.nuxeo.ecm.core.blob.BlobProvider
allowByteRange, allowDirectDownload, canConvert, deleteBlob, getAppLinks, getAvailableConversions, getBinaryGarbageCollector, getFile, getStatus, getStream, getStream, getThumbnail, hasCreateFromKeyPermission, isColdStorageMode, isRecordMode, isTransactional, isVersion, readBlob, supportsSync, updateBlob, writeBlob
-
-
-
-
Field Detail
-
PRIVATE_KEY_PROPERTY
public static final String PRIVATE_KEY_PROPERTY
- See Also:
- Constant Field Values
-
PRIVATE_KEY_ID_PROPERTY
public static final String PRIVATE_KEY_ID_PROPERTY
- See Also:
- Constant Field Values
-
DISTRIB_DOMAIN_PROPERTY
public static final String DISTRIB_DOMAIN_PROPERTY
- See Also:
- Constant Field Values
-
PROTOCOL_PROPERTY
public static final String PROTOCOL_PROPERTY
- See Also:
- Constant Field Values
-
ENABLE_CF_ENCODING_FIX
public static final String ENABLE_CF_ENCODING_FIX
- See Also:
- Constant Field Values
-
distributionDomain
protected String distributionDomain
-
protocol
protected com.amazonaws.services.cloudfront.util.SignerUtils.Protocol protocol
-
privKey
protected PrivateKey privKey
-
privKeyId
protected String privKeyId
-
-
Method Detail
-
setupCloudClient
protected void setupCloudClient() throws IOException
Description copied from class:AbstractCloudBinaryManager
Configure Cloud client using properties- Overrides:
setupCloudClient
in classS3BinaryManager
- Throws:
IOException
-
getRemoteUri
protected URI getRemoteUri(String digest, ManagedBlob blob, javax.servlet.http.HttpServletRequest servletRequest) throws IOException
- Overrides:
getRemoteUri
in classS3BinaryManager
- Throws:
IOException
-
-