Class YouTubePublicationServiceRemoteImpl
java.lang.Object
org.opencastproject.serviceregistry.api.RemoteBase
org.opencastproject.publication.youtube.remote.YouTubePublicationServiceRemoteImpl
- All Implemented Interfaces:
YouTubePublicationService
public class YouTubePublicationServiceRemoteImpl
extends RemoteBase
implements YouTubePublicationService
A remote youtube service invoker.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.opencastproject.serviceregistry.api.RemoteBase
RemoteBase.HttpClientClosingInputStream -
Field Summary
Fields inherited from class org.opencastproject.serviceregistry.api.RemoteBase
client, elementsFromHttpResponse, remoteServiceManager, serviceTypeFields inherited from interface org.opencastproject.publication.api.YouTubePublicationService
JOB_TYPE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionpublish(MediaPackage mediaPackage, Track track) Publishes a media package element.retract(MediaPackage mediaPackage) Retract a media package element from the distribution channel.voidsetRemoteServiceManager(ServiceRegistry serviceRegistry) Sets the remote service manager.voidsetTrustedHttpClient(TrustedHttpClient trustedHttpClient) Sets the trusted http clientMethods inherited from class org.opencastproject.serviceregistry.api.RemoteBase
closeConnection, getResponse, getResponse, runRequest
-
Constructor Details
-
YouTubePublicationServiceRemoteImpl
public YouTubePublicationServiceRemoteImpl()
-
-
Method Details
-
publish
Description copied from interface:YouTubePublicationServicePublishes a media package element.- Specified by:
publishin interfaceYouTubePublicationService- Parameters:
mediaPackage- the media packagetrack- the track of the media package to publish- Returns:
- The job
- Throws:
PublicationException- if there was a problem publishing the media
-
retract
Description copied from interface:YouTubePublicationServiceRetract a media package element from the distribution channel.- Specified by:
retractin interfaceYouTubePublicationService- Parameters:
mediaPackage- the media package- Throws:
PublicationException- if there was a problem retracting the mediapackage
-
setTrustedHttpClient
Description copied from class:RemoteBaseSets the trusted http client- Overrides:
setTrustedHttpClientin classRemoteBase- Parameters:
trustedHttpClient-
-
setRemoteServiceManager
Description copied from class:RemoteBaseSets the remote service manager.- Overrides:
setRemoteServiceManagerin classRemoteBase- Parameters:
serviceRegistry-
-