Class TimelinePreviewsRestEndpoint
java.lang.Object
org.opencastproject.rest.AbstractJobProducerEndpoint
org.opencastproject.timelinepreviews.endpoint.TimelinePreviewsRestEndpoint
@Path("/timelinepreviews")
public class TimelinePreviewsRestEndpoint
extends org.opencastproject.rest.AbstractJobProducerEndpoint
The REST endpoint for the
TimelinePreviewsService service-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected StringThe rest docsprotected org.opencastproject.timelinepreviews.api.TimelinePreviewsServiceThe timeline previews serviceprotected org.opencastproject.serviceregistry.api.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()org.opencastproject.job.api.JobProducerorg.opencastproject.serviceregistry.api.ServiceRegistryprotected voidsetServiceRegistry(org.opencastproject.serviceregistry.api.ServiceRegistry serviceRegistry) Callback from the OSGi declarative services to set the service registry.protected voidsetTimelinePreviewsService(org.opencastproject.timelinepreviews.api.TimelinePreviewsService timelinePreviewsService) Sets the timeline previews serviceMethods inherited from class org.opencastproject.rest.AbstractJobProducerEndpoint
checkHeartbeat, dispatchJob
-
Field Details
-
docs
The rest docs -
service
protected org.opencastproject.timelinepreviews.api.TimelinePreviewsService serviceThe timeline previews service -
serviceRegistry
protected org.opencastproject.serviceregistry.api.ServiceRegistry serviceRegistryThe service registry
-
-
Constructor Details
-
TimelinePreviewsRestEndpoint
public TimelinePreviewsRestEndpoint()
-
-
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
-
setTimelinePreviewsService
protected void setTimelinePreviewsService(org.opencastproject.timelinepreviews.api.TimelinePreviewsService timelinePreviewsService) 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
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
-