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 Summary
FieldsModifier and TypeFieldDescriptionprotected StringThe rest docsprotected TimelinePreviewsServiceThe timeline previews serviceprotected ServiceRegistryThe service registry -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionjavax.ws.rs.core.ResponsecreateTimelinePreviews(String trackAsXml, int imageCount) Generates timeline preview images for a track.getDocs()Returns the job producer that is backing this REST endpoint.Return the service registry.protected voidsetServiceRegistry(ServiceRegistry serviceRegistry) Callback from the OSGi declarative services to set the service registry.protected voidsetTimelinePreviewsService(TimelinePreviewsService timelinePreviewsService) Sets the timeline previews serviceMethods inherited from class org.opencastproject.rest.AbstractJobProducerEndpoint
checkHeartbeat, dispatchJob
-
Field Details
-
docs
The rest docs -
service
The timeline previews service -
serviceRegistry
The service registry
-
-
Constructor Details
-
TimelinePreviewsRestEndpoint
public TimelinePreviewsRestEndpoint()
-
-
Method Details
-
setServiceRegistry
Callback from the OSGi declarative services to set the service registry.- Parameters:
serviceRegistry- the service registry
-
setTimelinePreviewsService
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
-
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
-