Class TimelinePreviewsRestEndpoint

java.lang.Object
org.opencastproject.rest.AbstractJobProducerEndpoint
org.opencastproject.timelinepreviews.endpoint.TimelinePreviewsRestEndpoint

@Path("/timelinepreviews") public class TimelinePreviewsRestEndpoint extends AbstractJobProducerEndpoint
The REST endpoint for the TimelinePreviewsService service
  • Field Details

  • Constructor Details

    • TimelinePreviewsRestEndpoint

      public TimelinePreviewsRestEndpoint()
  • Method Details

    • setServiceRegistry

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

      protected void setTimelinePreviewsService(TimelinePreviewsService timelinePreviewsService)
      Sets the timeline previews service
      Parameters:
      timelinePreviewsService - the timeline previews service
    • createTimelinePreviews

      @POST @Path("/create") @Produces("text/xml") public javax.ws.rs.core.Response createTimelinePreviews(@FormParam("track") String trackAsXml, @FormParam("imageCount") int imageCount) throws Exception
      Generates timeline preview images for a track.
      Parameters:
      trackAsXml - the track xml to create preview images for
      Returns:
      the job in the body of a JAX-RS response
      Throws:
      Exception
    • getDocs

      @GET @Produces("text/html") @Path("docs") public String getDocs()
    • getService

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

      public ServiceRegistry getServiceRegistry()
      Description copied from class: AbstractJobProducerEndpoint
      Return the service registry.
      Specified by:
      getServiceRegistry in class AbstractJobProducerEndpoint