Class CoverImageEndpoint
java.lang.Object
org.opencastproject.rest.AbstractJobProducerEndpoint
org.opencastproject.coverimage.impl.endpoint.CoverImageEndpoint
REST endpoint for
CoverImageService-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidactivate(org.osgi.service.component.ComponentContext cc) Callback from OSGi that is called when this service is activated.javax.ws.rs.core.ResponsegenerateCoverImage(String xml, String xsl, String width, String height, String posterFlavor, String targetFlavor) Returns the job producer that is backing this REST endpoint.Return the service registry.protected voidsetCoverImageService(CoverImageService coverImageService) OSGi callback to set the a reference to the cover image service.protected voidsetServiceRegistry(ServiceRegistry serviceRegistry) OSGi callback to set the a reference to the service registry.Methods inherited from class org.opencastproject.rest.AbstractJobProducerEndpoint
checkHeartbeat, dispatchJob
-
Constructor Details
-
CoverImageEndpoint
public CoverImageEndpoint()
-
-
Method Details
-
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
-
generateCoverImage
@POST @Path("generate") @Produces("text/xml") public javax.ws.rs.core.Response generateCoverImage(@FormParam("xml") String xml, @FormParam("xsl") String xsl, @FormParam("width") String width, @FormParam("height") String height, @FormParam("posterimage") String posterFlavor, @FormParam("targetflavor") String targetFlavor) -
setServiceRegistry
OSGi callback to set the a reference to the service registry.- Parameters:
serviceRegistry- the service registry
-
setCoverImageService
OSGi callback to set the a reference to the cover image service.- Parameters:
coverImageService-
-
activate
protected void activate(org.osgi.service.component.ComponentContext cc) Callback from OSGi that is called when this service is activated.- Parameters:
cc- OSGi component context
-