Class VideoSegmenterRestEndpoint

java.lang.Object
org.opencastproject.rest.AbstractJobProducerEndpoint
org.opencastproject.videosegmenter.ffmpeg.endpoint.VideoSegmenterRestEndpoint

@Path("/analysis/videosegmenter") public class VideoSegmenterRestEndpoint extends AbstractJobProducerEndpoint
The REST endpoint for the VideoSegmenterService service
  • Field Details

  • Constructor Details

    • VideoSegmenterRestEndpoint

      public VideoSegmenterRestEndpoint()
  • Method Details

    • setServiceRegistry

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

      protected void setVideoSegmenter(VideoSegmenterService videoSegmenter)
      Sets the segmenter
      Parameters:
      videoSegmenter - the segmenter
    • segment

      @POST @Path("") @Produces("text/xml") public javax.ws.rs.core.Response segment(@FormParam("track") String trackAsXml) throws Exception
      Segments a track.
      Parameters:
      trackAsXml - the track xml to segment
      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