Class WowzaStreamingDistributionRestService
java.lang.Object
org.opencastproject.rest.AbstractJobProducerEndpoint
org.opencastproject.distribution.streaming.wowza.endpoint.WowzaStreamingDistributionRestService
@Path("/distribution/streaming")
public class WowzaStreamingDistributionRestService
extends AbstractJobProducerEndpoint
Rest endpoint for distributing media to the streaming distribution channel.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidactivate(org.osgi.service.component.ComponentContext cc) OSGi activation callbackjavax.ws.rs.core.Responsedistribute(String mediaPackageXml, String channelId, String elementIds) javax.ws.rs.core.ResponsedistributeSync(String mediaPackageXml, String channelId, String elementIds) Returns the job producer that is backing this REST endpoint.Return the service registry.javax.ws.rs.core.Responsejavax.ws.rs.core.Responsejavax.ws.rs.core.ResponseretractSync(String mediaPackageXml, String channelId, String elementIds) voidsetService(StreamingDistributionService service) protected voidsetServiceRegistry(ServiceRegistry serviceRegistry) Callback from the OSGi declarative services to set the service registry.Methods inherited from class org.opencastproject.rest.AbstractJobProducerEndpoint
checkHeartbeat, dispatchJob
-
Constructor Details
-
WowzaStreamingDistributionRestService
public WowzaStreamingDistributionRestService()
-
-
Method Details
-
activate
public void activate(org.osgi.service.component.ComponentContext cc) OSGi activation callback- Parameters:
cc- this component's context
-
setServiceRegistry
Callback from the OSGi declarative services to set the service registry.- Parameters:
serviceRegistry- the service registry
-
setService
- Parameters:
service- the service to set
-
publishToStreaming
@GET @Produces("application/json") @Path("/publishToStreaming") public javax.ws.rs.core.Response publishToStreaming() -
distribute
-
distributeSync
-
retract
-
retractSync
-
getService
Returns the job producer that is backing this REST endpoint.- Specified by:
getServicein classAbstractJobProducerEndpoint- Returns:
- the job producer
- See Also:
-
getServiceRegistry
Return the service registry.- Specified by:
getServiceRegistryin classAbstractJobProducerEndpoint- See Also:
-