Class S3Context

java.lang.Object
org.craftercms.core.service.ContextImpl
org.craftercms.engine.store.s3.S3Context
All Implemented Interfaces:
Cloneable, org.craftercms.core.service.Context

public class S3Context extends org.craftercms.core.service.ContextImpl
Implementation of Context for AWS S3.
Author:
joseross
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected com.amazonaws.services.s3.AmazonS3URI
    AWS S3 bucket uri to use as root folder for the site.

    Fields inherited from class org.craftercms.core.service.ContextImpl

    CACHE_SCOPE_FORMAT, cacheOn, cacheVersion, id, ignoreHiddenFiles, maxAllowedItemsInCache, mergingOn, rootFolderPath, storeAdapter

    Fields inherited from interface org.craftercms.core.service.Context

    DEFAULT_CACHE_ON, DEFAULT_IGNORE_HIDDEN_FILES, DEFAULT_MAX_ALLOWED_ITEMS_IN_CACHE, DEFAULT_MERGING_ON
  • Constructor Summary

    Constructors
    Constructor
    Description
    S3Context(String id, org.craftercms.core.store.ContentStoreAdapter storeAdapter, String rootFolderPath, boolean mergingOn, boolean cacheOn, int maxAllowedItemsInCache, boolean ignoreHiddenFiles, com.amazonaws.services.s3.AmazonS3URI rootFolderUri)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the name of the bucket.
    Returns the key of the folder.

    Methods inherited from class org.craftercms.core.service.ContextImpl

    clone, equals, getCacheScope, getCacheVersion, getId, getMaxAllowedItemsInCache, getStoreAdapter, hashCode, ignoreHiddenFiles, isCacheOn, isMergingOn, setCacheVersion, toString

    Methods inherited from class java.lang.Object

    finalize, getClass, notify, notifyAll, wait, wait, wait
  • Field Details

    • rootFolderUri

      protected com.amazonaws.services.s3.AmazonS3URI rootFolderUri
      AWS S3 bucket uri to use as root folder for the site.
  • Constructor Details

    • S3Context

      public S3Context(String id, org.craftercms.core.store.ContentStoreAdapter storeAdapter, String rootFolderPath, boolean mergingOn, boolean cacheOn, int maxAllowedItemsInCache, boolean ignoreHiddenFiles, com.amazonaws.services.s3.AmazonS3URI rootFolderUri)
  • Method Details

    • getBucket

      public String getBucket()
      Returns the name of the bucket.
    • getKey

      public String getKey()
      Returns the key of the folder.