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 Summary
FieldsModifier and TypeFieldDescriptionprotected StringThe rest docsprotected VideoSegmenterServiceThe video segmenterprotected ServiceRegistryThe service registry -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetDocs()Returns the job producer that is backing this REST endpoint.Return the service registry.javax.ws.rs.core.ResponseSegments a track.protected voidsetServiceRegistry(ServiceRegistry serviceRegistry) Callback from the OSGi declarative services to set the service registry.protected voidsetVideoSegmenter(VideoSegmenterService videoSegmenter) Sets the segmenterMethods inherited from class org.opencastproject.rest.AbstractJobProducerEndpoint
checkHeartbeat, dispatchJob
-
Field Details
-
docs
The rest docs -
service
The video segmenter -
serviceRegistry
The service registry
-
-
Constructor Details
-
VideoSegmenterRestEndpoint
public VideoSegmenterRestEndpoint()
-
-
Method Details
-
setServiceRegistry
Callback from the OSGi declarative services to set the service registry.- Parameters:
serviceRegistry- the service registry
-
setVideoSegmenter
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
Description copied from class:AbstractJobProducerEndpointReturns the job producer that is backing this REST endpoint.- Specified by:
getServicein classAbstractJobProducerEndpoint- Returns:
- the job producer
-
getServiceRegistry
Description copied from class:AbstractJobProducerEndpointReturn the service registry.- Specified by:
getServiceRegistryin classAbstractJobProducerEndpoint
-