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
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
    activate(org.osgi.service.component.ComponentContext cc)
    Callback from OSGi that is called when this service is activated.
    javax.ws.rs.core.Response
    generateCoverImage(String xml, String xsl, String width, String height, String posterFlavor, String targetFlavor)
     
    org.opencastproject.job.api.JobProducer
     
    org.opencastproject.serviceregistry.api.ServiceRegistry
     
    protected void
    setCoverImageService(org.opencastproject.coverimage.CoverImageService coverImageService)
    OSGi callback to set the a reference to the cover image service.
    protected void
    setServiceRegistry(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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • CoverImageEndpoint

      public CoverImageEndpoint()
  • Method Details

    • getService

      public org.opencastproject.job.api.JobProducer getService()
      Specified by:
      getService in class org.opencastproject.rest.AbstractJobProducerEndpoint
    • getServiceRegistry

      public org.opencastproject.serviceregistry.api.ServiceRegistry getServiceRegistry()
      Specified by:
      getServiceRegistry in class org.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