Class Catalog.AbstractBuilder<T extends Catalog.AbstractBuilder<T>>

java.lang.Object
com.brightcove.player.edge.Catalog.AbstractBuilder<T>
Direct Known Subclasses:
AbstractOfflineCatalog.Builder, Catalog.Builder
Enclosing class:
Catalog

protected abstract static class Catalog.AbstractBuilder<T extends Catalog.AbstractBuilder<T>> extends Object
An abstract Builder which sets the bases to create the Catalog object.
  • Constructor Details

    • AbstractBuilder

      protected AbstractBuilder(@NonNull EventEmitter eventEmitter, @NonNull String account)
  • Method Details

    • self

      protected abstract T self()
      Returns the instance of itself. This is a part of the pattern to set the Builder ready for inheritance.
    • setPolicy

      public T setPolicy(@NonNull String policy)
      Sets the Poly Key associated with the Account
      Parameters:
      policy - the policy key
      Returns:
      this builder
    • setBaseURL

      public T setBaseURL(@NonNull String baseURL)
      Sets the base url used to make Catalog request to retrieve the Videos and Playlists.
      Parameters:
      baseURL - the base url
      Returns:
      this builder
    • setProperties

      public T setProperties(@NonNull Map<String,String> properties)
      Sets the properties Map.
    • build

      public Catalog build()
      Builds the Catalog object.