Class AwsS3BlobStore
java.lang.Object
org.craftercms.commons.file.blob.impl.AbstractBlobStore<S3Profile>
org.craftercms.commons.file.blob.impl.s3.AwsS3BlobStore
- All Implemented Interfaces:
BlobStore
Implementation of
BlobStore
for AWS S3- Since:
- 3.1.6
- Author:
- joseross
-
Nested Class Summary
Nested classes/interfaces inherited from class org.craftercms.commons.file.blob.impl.AbstractBlobStore
AbstractBlobStore.Mapping
-
Field Summary
Fields inherited from class org.craftercms.commons.file.blob.impl.AbstractBlobStore
id, mappings, pattern, profile, profileMapper, publishingTargetResolver
Fields inherited from interface org.craftercms.commons.file.blob.BlobStore
CONFIG_KEY_CONFIGURATION, CONFIG_KEY_ID, CONFIG_KEY_MAPPING, CONFIG_KEY_MAPPING_PREFIX, CONFIG_KEY_MAPPING_PUBLISHING_TARGET, CONFIG_KEY_MAPPING_STORE_TARGET, CONFIG_KEY_PATTERN, CONFIG_KEY_READ_ONLY, CONFIG_KEY_STORE, CONFIG_KEY_TYPE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected org.springframework.core.io.Resource
doGetContent
(AbstractBlobStore.Mapping mapping, String path) void
doInit
(org.apache.commons.configuration2.HierarchicalConfiguration<org.apache.commons.configuration2.tree.ImmutableNode> config) protected com.amazonaws.services.s3.AmazonS3
protected String
getKey
(AbstractBlobStore.Mapping mapping, String path) void
setClientFactory
(S3ClientCachingFactory clientFactory) Methods inherited from class org.craftercms.commons.file.blob.impl.AbstractBlobStore
getId, getMapping, getResource, init, isCompatible, setId, setPattern, setProfileMapper, setPublishingTargetResolver
-
Field Details
-
clientFactory
The client factory
-
-
Constructor Details
-
AwsS3BlobStore
public AwsS3BlobStore()
-
-
Method Details
-
setClientFactory
-
getClient
protected com.amazonaws.services.s3.AmazonS3 getClient() -
getKey
-
doInit
public void doInit(org.apache.commons.configuration2.HierarchicalConfiguration<org.apache.commons.configuration2.tree.ImmutableNode> config) throws ConfigurationException - Specified by:
doInit
in classAbstractBlobStore<S3Profile>
- Throws:
ConfigurationException
-
doGetContent
protected org.springframework.core.io.Resource doGetContent(AbstractBlobStore.Mapping mapping, String path) - Specified by:
doGetContent
in classAbstractBlobStore<S3Profile>
-