Class OsgiEndpointHttpAssetProvider
java.lang.Object
org.opencastproject.assetmanager.impl.endpoint.OsgiEndpointHttpAssetProvider
- All Implemented Interfaces:
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidactivate(org.osgi.service.component.ComponentContext cc) OSGi callback.prepareForDelivery(Snapshot snapshot) Rewrite each asset's URI to point to an HTTP service that will deliver it.voidOSGi DI
-
Constructor Details
-
OsgiEndpointHttpAssetProvider
public OsgiEndpointHttpAssetProvider()
-
-
Method Details
-
prepareForDelivery
Description copied from interface:HttpAssetProviderRewrite 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:
prepareForDeliveryin interfaceHttpAssetProvider
-
activate
public void activate(org.osgi.service.component.ComponentContext cc) OSGi callback. -
setOrgDir
OSGi DI
-