Class S3.Factory
java.lang.Object
com.codename1.backend.aws.S3.Factory
- All Implemented Interfaces:
ObjectStorages.Factory
- Enclosing class:
S3
Opens s3:// and r2:// storage URLs for
ObjectStorages; the generated wiring
registers it under whichever of the two the configuration names.
s3://region(ors3://, which readsAWS_REGION) is AWS. Withcn1.storage.s3.endpointset it is that S3-compatible endpoint instead, addressed path-style.r2://<account id>is Cloudflare R2, at<account id>.r2.cloudflarestorage.com, or the jurisdictioncn1.storage.r2.jurisdictionnames (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.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionThe storageurlnames, configured fromconfig(which may be null).
-
Constructor Details
-
Factory
public Factory()
-
-
Method Details
-
open
Description copied from interface:ObjectStorages.FactoryThe storageurlnames, configured fromconfig(which may be null).- Specified by:
openin interfaceObjectStorages.Factory- Throws:
IOException
-