Class YouTubePublicationRestService
java.lang.Object
org.opencastproject.rest.AbstractJobProducerEndpoint
org.opencastproject.publication.youtube.endpoint.YouTubePublicationRestService
Rest endpoint for publishing media to youtube.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the job producer that is backing this REST endpoint.Return the service registry.javax.ws.rs.core.Responsejavax.ws.rs.core.Responseprotected voidsetService(YouTubePublicationService service) Callback from OSGi to set a reference to the youtube publication service.protected voidsetServiceRegistry(ServiceRegistry serviceRegistry) Callback from the OSGi declarative services to set the service registryMethods inherited from class org.opencastproject.rest.AbstractJobProducerEndpoint
checkHeartbeat, dispatchJob
-
Field Details
-
service
-
serviceRegistry
-
-
Constructor Details
-
YouTubePublicationRestService
public YouTubePublicationRestService()
-
-
Method Details
-
publish
-
retract
@POST @Path("/retract") @Produces("text/xml") public javax.ws.rs.core.Response retract(@FormParam("mediapackage") String mediaPackageXml) -
getService
Returns the job producer that is backing this REST endpoint.- Specified by:
getServicein classAbstractJobProducerEndpoint- Returns:
- the job producer
- See Also:
-
setServiceRegistry
Callback from the OSGi declarative services to set the service registry- Parameters:
serviceRegistry- the service registry
-
getServiceRegistry
Return the service registry.- Specified by:
getServiceRegistryin classAbstractJobProducerEndpoint- See Also:
-
setService
Callback from OSGi to set a reference to the youtube publication service.- Parameters:
service- the service to set
-