Class CoverImageEndpoint
java.lang.Object
org.opencastproject.rest.AbstractJobProducerEndpoint
org.opencastproject.coverimage.impl.endpoint.CoverImageEndpoint
@Path("/cover-image")
public class CoverImageEndpoint
extends org.opencastproject.rest.AbstractJobProducerEndpoint
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) org.opencastproject.job.api.JobProducerorg.opencastproject.serviceregistry.api.ServiceRegistryprotected voidsetCoverImageService(org.opencastproject.coverimage.CoverImageService coverImageService) OSGi callback to set the a reference to the cover image service.protected voidsetServiceRegistry(org.opencastproject.serviceregistry.api.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
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
-
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
protected void setServiceRegistry(org.opencastproject.serviceregistry.api.ServiceRegistry serviceRegistry) OSGi callback to set the a reference to the service registry.- Parameters:
serviceRegistry- the service registry
-
setCoverImageService
protected void setCoverImageService(org.opencastproject.coverimage.CoverImageService coverImageService) 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
-