Class VideoSegmenterRestEndpoint

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

@Path("/analysis/videosegmenter") public class VideoSegmenterRestEndpoint extends org.opencastproject.rest.AbstractJobProducerEndpoint
The REST endpoint for the VideoSegmenterService service
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected String
    The rest docs
    protected org.opencastproject.videosegmenter.api.VideoSegmenterService
    The video segmenter
    protected org.opencastproject.serviceregistry.api.ServiceRegistry
    The service registry
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
     
    org.opencastproject.job.api.JobProducer
     
    org.opencastproject.serviceregistry.api.ServiceRegistry
     
    javax.ws.rs.core.Response
    segment(String trackAsXml)
    Segments a track.
    protected void
    setServiceRegistry(org.opencastproject.serviceregistry.api.ServiceRegistry serviceRegistry)
    Callback from the OSGi declarative services to set the service registry.
    protected void
    setVideoSegmenter(org.opencastproject.videosegmenter.api.VideoSegmenterService videoSegmenter)
    Sets the segmenter

    Methods inherited from class org.opencastproject.rest.AbstractJobProducerEndpoint

    checkHeartbeat, dispatchJob

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • docs

      protected String docs
      The rest docs
    • service

      protected org.opencastproject.videosegmenter.api.VideoSegmenterService service
      The video segmenter
    • serviceRegistry

      protected org.opencastproject.serviceregistry.api.ServiceRegistry serviceRegistry
      The service registry
  • Constructor Details

    • VideoSegmenterRestEndpoint

      public VideoSegmenterRestEndpoint()
  • Method Details

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

      protected void setVideoSegmenter(org.opencastproject.videosegmenter.api.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 org.opencastproject.job.api.JobProducer getService()
      Specified by:
      getService in class org.opencastproject.rest.AbstractJobProducerEndpoint
    • getServiceRegistry

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