Class S3.Factory

java.lang.Object
com.codename1.backend.aws.S3.Factory
All Implemented Interfaces:
ObjectStorages.Factory
Enclosing class:
S3

public static final class S3.Factory extends Object implements ObjectStorages.Factory

Opens s3:// and r2:// storage URLs for ObjectStorages; the generated wiring registers it under whichever of the two the configuration names.

  • s3://region (or s3://, which reads AWS_REGION) is AWS. With cn1.storage.s3.endpoint set it is that S3-compatible endpoint instead, addressed path-style.
  • r2://<account id> is Cloudflare R2, at <account id>.r2.cloudflarestorage.com, or the jurisdiction cn1.storage.r2.jurisdiction names (eu, fedramp).

Keys come from cn1.storage.<s3|r2>.access-key-id and .secret-access-key. Without them AWS resolves its usual chain (environment, container, instance role) and R2 reads the AWS_ACCESS_KEY_ID / AWS_SECRET_ACCESS_KEY environment, which is where R2's own documentation puts its S3 keys.