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
FieldsModifier and TypeFieldDescriptionprotected StringThe rest docsprotected org.opencastproject.videosegmenter.api.VideoSegmenterServiceThe video segmenterprotected org.opencastproject.serviceregistry.api.ServiceRegistryThe service registry -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetDocs()org.opencastproject.job.api.JobProducerorg.opencastproject.serviceregistry.api.ServiceRegistryjavax.ws.rs.core.ResponseSegments a track.protected voidsetServiceRegistry(org.opencastproject.serviceregistry.api.ServiceRegistry serviceRegistry) Callback from the OSGi declarative services to set the service registry.protected voidsetVideoSegmenter(org.opencastproject.videosegmenter.api.VideoSegmenterService videoSegmenter) Sets the segmenterMethods inherited from class org.opencastproject.rest.AbstractJobProducerEndpoint
checkHeartbeat, dispatchJob
-
Field Details
-
docs
The rest docs -
service
protected org.opencastproject.videosegmenter.api.VideoSegmenterService serviceThe video segmenter -
serviceRegistry
protected org.opencastproject.serviceregistry.api.ServiceRegistry serviceRegistryThe 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
-
getService
public org.opencastproject.job.api.JobProducer getService()- Specified by:
getServicein classorg.opencastproject.rest.AbstractJobProducerEndpoint
-
getServiceRegistry
public org.opencastproject.serviceregistry.api.ServiceRegistry getServiceRegistry()- Specified by:
getServiceRegistryin classorg.opencastproject.rest.AbstractJobProducerEndpoint
-