Class AwsS3DistributionRestService
java.lang.Object
org.opencastproject.rest.AbstractJobProducerEndpoint
org.opencastproject.distribution.aws.s3.endpoint.AwsS3DistributionRestService
@Path("/distribution/s3")
public class AwsS3DistributionRestService
extends org.opencastproject.rest.AbstractJobProducerEndpoint
Rest endpoint for distributing files to AWS S3.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected org.opencastproject.distribution.aws.s3.api.AwsS3DistributionServiceThe distribution serviceprotected org.opencastproject.serviceregistry.api.ServiceRegistryThe service registry -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidactivate(org.osgi.service.component.ComponentContext cc) OSGi activation callbackjavax.ws.rs.core.Responsedistribute(String mediaPackageXml, String channelId, String elementId, boolean checkAvailability) javax.ws.rs.core.ResponsedistributeSync(String mediaPackageXml, String channelId, String elementId, boolean checkAvailability) org.opencastproject.job.api.JobProducerorg.opencastproject.serviceregistry.api.ServiceRegistryjavax.ws.rs.core.Responsejavax.ws.rs.core.ResponseretractSync(String mediaPackageXml, String channelId, String elementId) voidsetService(org.opencastproject.distribution.aws.s3.api.AwsS3DistributionService service) protected voidsetServiceRegistry(org.opencastproject.serviceregistry.api.ServiceRegistry serviceRegistry) Callback from the OSGi declarative services to set the service registry.Methods inherited from class org.opencastproject.rest.AbstractJobProducerEndpoint
checkHeartbeat, dispatchJob
-
Field Details
-
service
protected org.opencastproject.distribution.aws.s3.api.AwsS3DistributionService serviceThe distribution service -
serviceRegistry
protected org.opencastproject.serviceregistry.api.ServiceRegistry serviceRegistryThe service registry
-
-
Constructor Details
-
AwsS3DistributionRestService
public AwsS3DistributionRestService()
-
-
Method Details
-
activate
public void activate(org.osgi.service.component.ComponentContext cc) OSGi activation callback- Parameters:
cc- this component's context
-
setServiceRegistry
protected void setServiceRegistry(org.opencastproject.serviceregistry.api.ServiceRegistry serviceRegistry) Callback from the OSGi declarative services to set the service registry.- Parameters:
serviceRegistry- the service registry
-
setService
public void setService(org.opencastproject.distribution.aws.s3.api.AwsS3DistributionService service) - Parameters:
service- the service to set
-
distribute
@POST @Path("/") @Produces("text/xml") public javax.ws.rs.core.Response distribute(@FormParam("mediapackage") String mediaPackageXml, @FormParam("channelId") String channelId, @FormParam("elementId") String elementId, @FormParam("checkAvailability") @DefaultValue("true") boolean checkAvailability) throws Exception - Throws:
Exception
-
distributeSync
@POST @Path("/distributesync") @Produces("text/xml") public javax.ws.rs.core.Response distributeSync(@FormParam("mediapackage") String mediaPackageXml, @FormParam("channelId") String channelId, @FormParam("elementId") String elementId, @FormParam("checkAvailability") @DefaultValue("true") boolean checkAvailability) throws Exception - Throws:
Exception
-
retract
@POST @Path("/retract") @Produces("text/xml") public javax.ws.rs.core.Response retract(@FormParam("mediapackage") String mediaPackageXml, @FormParam("channelId") String channelId, @FormParam("elementId") String elementId) throws Exception - Throws:
Exception
-
retractSync
@POST @Path("/retractsync") @Produces("text/xml") public javax.ws.rs.core.Response retractSync(@FormParam("mediapackage") String mediaPackageXml, @FormParam("channelId") String channelId, @FormParam("elementId") String elementId) throws Exception - Throws:
Exception
-
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:
-