Class OsgiEndpointHttpAssetProvider

java.lang.Object
org.opencastproject.assetmanager.impl.endpoint.OsgiEndpointHttpAssetProvider
All Implemented Interfaces:
HttpAssetProvider

public class OsgiEndpointHttpAssetProvider extends Object implements HttpAssetProvider
Implementation of an HttpAssetProvider for the OsgiAssetManagerRestEndpoint.

The implementation of the interface needs to be decoupled from the endpoint to avoid a circular dependency between the AssetManager and the endpoint. See HIWEST-492 for details.

Because of its tight coupling to the OSGi runtime, the implementation goes without an abstract base class.

  • Constructor Details

    • OsgiEndpointHttpAssetProvider

      public OsgiEndpointHttpAssetProvider()
  • Method Details

    • prepareForDelivery

      public org.opencastproject.assetmanager.api.Snapshot prepareForDelivery(org.opencastproject.assetmanager.api.Snapshot snapshot)
      Description copied from interface: HttpAssetProvider
      Rewrite each asset's URI to point to an HTTP service that will deliver it. Preparation preserves the original media package and returns a modified copy.
      Specified by:
      prepareForDelivery in interface HttpAssetProvider
    • activate

      public void activate(org.osgi.service.component.ComponentContext cc)
      OSGi callback.
    • setOrgDir

      public void setOrgDir(org.opencastproject.security.api.OrganizationDirectoryService orgDir)
      OSGi DI