Class WowzaStreamingDistributionRestService

java.lang.Object
org.opencastproject.rest.AbstractJobProducerEndpoint
org.opencastproject.distribution.streaming.wowza.endpoint.WowzaStreamingDistributionRestService

@Path("/distribution/streaming") public class WowzaStreamingDistributionRestService extends org.opencastproject.rest.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(org.opencastproject.serviceregistry.api.ServiceRegistry serviceRegistry)
      Callback from the OSGi declarative services to set the service registry.
      Parameters:
      serviceRegistry - the service registry
    • setService

      public void setService(org.opencastproject.distribution.api.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 org.opencastproject.job.api.JobProducer getService()
      Specified by:
      getService in class org.opencastproject.rest.AbstractJobProducerEndpoint
      See Also:
      • AbstractJobProducerEndpoint.getService()
    • getServiceRegistry

      public org.opencastproject.serviceregistry.api.ServiceRegistry getServiceRegistry()
      Specified by:
      getServiceRegistry in class org.opencastproject.rest.AbstractJobProducerEndpoint
      See Also:
      • AbstractJobProducerEndpoint.getServiceRegistry()