Class ObjectStorages

java.lang.Object
com.codename1.backend.storage.ObjectStorages

public final class ObjectStorages extends Object

The server's ObjectStorage, opened from cn1.storage.url the first time it is asked for.

URL provider
memory: in this process, for tests; the default when nothing is set
s3://us-east-1 Amazon S3 in that region (s3:// alone reads AWS_REGION)
s3://us-east-1 with cn1.storage.s3.endpoint an S3-compatible service: MinIO, Ceph, B2, Wasabi
r2://<account id> Cloudflare R2
gs:// or gs://<project> Google Cloud Storage
azblob://<account> Azure Blob Storage

Each provider is a separate class the build compiles in only when the configuration names it, the way messaging transports are: the generated wiring calls register(String, ObjectStorages.Factory) for that one. A test or a hand-wired server registers the factory itself.

  • Method Details