Class CropRestEndpoint
java.lang.Object
org.opencastproject.rest.AbstractJobProducerEndpoint
org.opencastproject.crop.endpoint.CropRestEndpoint
The REST endpoint for the
CropService service.-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected CropServiceThe cropperprotected StringThe rest docsprotected ServiceRegistryThe service registry -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionjavax.ws.rs.core.ResponsegetDocs()Returns the job producer that is backing this REST endpoint.Return the service registry.protected voidsetCropService(CropService cropService) Sets the cropper.protected voidsetServiceRegistry(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
The cropper -
serviceRegistry
The service registry
-
-
Constructor Details
-
CropRestEndpoint
public CropRestEndpoint()
-
-
Method Details
-
setServiceRegistry
Callback from OSGi declarative services to set the service registry.- Parameters:
serviceRegistry- the service registry
-
setCropService
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
Returns the job producer that is backing this REST endpoint.- Specified by:
getServicein classAbstractJobProducerEndpoint- Returns:
- the job producer
- See Also:
-
getServiceRegistry
Return the service registry.- Specified by:
getServiceRegistryin classAbstractJobProducerEndpoint- See Also:
-