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
FieldsModifier and TypeFieldDescriptionprotected org.opencastproject.crop.api.CropServiceThe cropperprotected StringThe rest docsprotected org.opencastproject.serviceregistry.api.ServiceRegistryThe service registry -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionjavax.ws.rs.core.ResponsegetDocs()org.opencastproject.job.api.JobProducerorg.opencastproject.serviceregistry.api.ServiceRegistryprotected voidsetCropService(org.opencastproject.crop.api.CropService cropService) Sets the cropper.protected voidsetServiceRegistry(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
-
Field Details
-
docs
The rest docs -
cropService
protected org.opencastproject.crop.api.CropService cropServiceThe cropper -
serviceRegistry
protected org.opencastproject.serviceregistry.api.ServiceRegistry serviceRegistryThe 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
-
getService
public org.opencastproject.job.api.JobProducer getService()- Specified by:
getServicein classorg.opencastproject.rest.AbstractJobProducerEndpoint- See Also:
-
getServiceRegistry
public org.opencastproject.serviceregistry.api.ServiceRegistry getServiceRegistry()- Specified by:
getServiceRegistryin classorg.opencastproject.rest.AbstractJobProducerEndpoint- See Also:
-