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 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

      protected void setServiceRegistry(ServiceRegistry serviceRegistry)
      Callback from the OSGi declarative services to set the service registry.
      Parameters:
      serviceRegistry - the service registry
    • setService

      public void setService(StreamingDistributionService service)
      Parameters:
      service - the service to set
    • publishToStreaming

      @GET @Produces("application/json") @Path("/publishToStreaming") public javax.ws.rs.core.Response publishToStreaming()
    • distribute

      @POST @Path("/") @Produces("text/xml") public javax.ws.rs.core.Response distribute(@FormParam("mediapackage") String mediaPackageXml, @FormParam("channelId") String channelId, @FormParam("elementIds") String elementIds)
    • distributeSync

      @POST @Path("/distributesync") @Produces("text/xml") public javax.ws.rs.core.Response distributeSync(@FormParam("mediapackage") String mediaPackageXml, @FormParam("channelId") String channelId, @FormParam("elementIds") String elementIds)
    • retract

      @POST @Path("/retract") @Produces("text/xml") public javax.ws.rs.core.Response retract(@FormParam("mediapackage") String mediaPackageXml, @FormParam("channelId") String channelId, @FormParam("elementIds") String elementIds)
    • retractSync

      @POST @Path("/retractsync") @Produces("text/xml") public javax.ws.rs.core.Response retractSync(@FormParam("mediapackage") String mediaPackageXml, @FormParam("channelId") String channelId, @FormParam("elementIds") String elementIds)
    • getService

      public JobProducer getService()
      Returns the job producer that is backing this REST endpoint.
      Specified by:
      getService in class AbstractJobProducerEndpoint
      Returns:
      the job producer
      See Also:
    • getServiceRegistry

      public ServiceRegistry getServiceRegistry()
      Return the service registry.
      Specified by:
      getServiceRegistry in class AbstractJobProducerEndpoint
      See Also: