Class CropRestEndpoint

java.lang.Object
org.opencastproject.rest.AbstractJobProducerEndpoint
org.opencastproject.crop.endpoint.CropRestEndpoint

@Path("/crop") public class CropRestEndpoint extends org.opencastproject.rest.AbstractJobProducerEndpoint
The REST endpoint for the CropService service.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected org.opencastproject.crop.api.CropService
    The cropper
    protected String
    The rest docs
    protected org.opencastproject.serviceregistry.api.ServiceRegistry
    The service registry
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    javax.ws.rs.core.Response
    crop(String trackAsXml)
     
     
    org.opencastproject.job.api.JobProducer
    org.opencastproject.serviceregistry.api.ServiceRegistry
    protected void
    setCropService(org.opencastproject.crop.api.CropService cropService)
    Sets the cropper.
    protected void
    setServiceRegistry(org.opencastproject.serviceregistry.api.ServiceRegistry serviceRegistry)
    Callback from OSGi declarative services to set 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
  • Field Details

    • docs

      protected String docs
      The rest docs
    • cropService

      protected org.opencastproject.crop.api.CropService cropService
      The cropper
    • serviceRegistry

      protected org.opencastproject.serviceregistry.api.ServiceRegistry serviceRegistry
      The service registry
  • Constructor Details

    • CropRestEndpoint

      public CropRestEndpoint()
  • Method Details

    • setServiceRegistry

      protected void setServiceRegistry(org.opencastproject.serviceregistry.api.ServiceRegistry serviceRegistry)
      Callback from OSGi declarative services to set the service registry.
      Parameters:
      serviceRegistry - the service registry
    • setCropService

      protected void setCropService(org.opencastproject.crop.api.CropService cropService)
      Sets the cropper.
      Parameters:
      cropService - the cropper
    • crop

      @POST @Path("") @Produces("text/xml") public javax.ws.rs.core.Response crop(@FormParam("track") String trackAsXml) throws Exception
      Throws:
      Exception
    • getDocs

      @GET @Produces("text/html") @Path("docs") public String getDocs()
    • getService

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

      public org.opencastproject.serviceregistry.api.ServiceRegistry getServiceRegistry()
      Specified by:
      getServiceRegistry in class org.opencastproject.rest.AbstractJobProducerEndpoint
      See Also:
      • AbstractJobProducerEndpoint.getServiceRegistry()