Class CoverImageEndpoint

java.lang.Object
org.opencastproject.rest.AbstractJobProducerEndpoint
org.opencastproject.coverimage.impl.endpoint.CoverImageEndpoint

@Path("/cover-image") public class CoverImageEndpoint extends AbstractJobProducerEndpoint
REST endpoint for CoverImageService
  • Constructor Details

    • CoverImageEndpoint

      public CoverImageEndpoint()
  • Method Details

    • getService

      public JobProducer getService()
      Description copied from class: AbstractJobProducerEndpoint
      Returns the job producer that is backing this REST endpoint.
      Specified by:
      getService in class AbstractJobProducerEndpoint
      Returns:
      the job producer
    • getServiceRegistry

      public ServiceRegistry getServiceRegistry()
      Description copied from class: AbstractJobProducerEndpoint
      Return the service registry.
      Specified by:
      getServiceRegistry in class 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(ServiceRegistry serviceRegistry)
      OSGi callback to set the a reference to the service registry.
      Parameters:
      serviceRegistry - the service registry
    • setCoverImageService

      protected void setCoverImageService(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