Class ExecuteRestEndpoint

java.lang.Object
org.opencastproject.rest.AbstractJobProducerEndpoint
org.opencastproject.execute.impl.endpoint.ExecuteRestEndpoint

@Path("/execute") public class ExecuteRestEndpoint extends AbstractJobProducerEndpoint
The REST endpoint for ExecuteServices
  • Field Details

    • serviceRegistry

      protected ServiceRegistry serviceRegistry
      The service registry
    • service

      protected ExecuteService service
      The execute service
  • Constructor Details

    • ExecuteRestEndpoint

      public ExecuteRestEndpoint()
  • Method Details

    • execute

      @POST @Produces("text/xml") @Path("execute") public javax.ws.rs.core.Response execute(@FormParam("exec") String exec, @FormParam("params") String params, @FormParam("load") Float loadParam, @FormParam("inputElement") String inputElementStr, @FormParam("inputMediaPackage") String inputMpStr, @FormParam("outputFilename") String outputFileName, @FormParam("expectedType") String elementTypeStr)
    • setExecuteService

      public void setExecuteService(ExecuteService service)
      Sets the service
      Parameters:
      service -
    • getService

      public JobProducer getService()
      Returns the job producer that is backing this REST endpoint.
      Specified by:
      getService in class AbstractJobProducerEndpoint
      Returns:
      the job producer
      See Also:
    • checkNotNull

      protected void checkNotNull(Object... services)
      Checks if the service or services are available, if not it handles it by returning a 503 with a message
      Parameters:
      services - an array of services to check
    • setServiceRegistry

      protected void setServiceRegistry(ServiceRegistry serviceRegistry)
      Callback from the OSGi declarative services to set the service registry.
      Parameters:
      serviceRegistry - the service registry
    • getServiceRegistry

      public ServiceRegistry getServiceRegistry()
      Return the service registry.
      Specified by:
      getServiceRegistry in class AbstractJobProducerEndpoint
      See Also: