ContentDelivery

Represents a content delivery network (CDN) configuration used within the system.

This class includes properties for defining a CDN URL and a specific formatter to process translations or related content dynamically. It serves as part of a builder pattern for constructing a configurable CDN setup.

The provided url can be explicitly set, or a default one is generated using additional properties like baseUrl and id in the Builder. It also supports flexible formatting strategies by utilizing the sealed Formatter interface.

Types

Link copied to clipboard
class Builder

A builder class for constructing instances of CDN with configurable properties. This class provides a fluent API to set various attributes for CDN and validates/computes URL properties as necessary.

Link copied to clipboard
object Companion

Companion object for the CDN class, keeping for extension functions.

Properties

Link copied to clipboard
Link copied to clipboard
val path: (language: String) -> String
Link copied to clipboard
Link copied to clipboard
val url: String? = null