Class CaptionServiceRemoteImpl
java.lang.Object
org.opencastproject.serviceregistry.api.RemoteBase
org.opencastproject.caption.remote.CaptionServiceRemoteImpl
- All Implemented Interfaces:
org.opencastproject.caption.api.CaptionService
public class CaptionServiceRemoteImpl
extends org.opencastproject.serviceregistry.api.RemoteBase
implements org.opencastproject.caption.api.CaptionService
Proxies a set of remote composer services for use as a JVM-local service. Remote services are selected at random.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.opencastproject.serviceregistry.api.RemoteBase
org.opencastproject.serviceregistry.api.RemoteBase.HttpClientClosingInputStream -
Field Summary
Fields inherited from class org.opencastproject.serviceregistry.api.RemoteBase
client, remoteServiceManager, serviceTypeFields inherited from interface org.opencastproject.caption.api.CaptionService
JOB_TYPE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.opencastproject.job.api.Jobconvert(org.opencastproject.mediapackage.MediaPackageElement input, String inputFormat, String outputFormat) org.opencastproject.job.api.Jobconvert(org.opencastproject.mediapackage.MediaPackageElement input, String inputFormat, String outputFormat, String language) String[]getLanguageList(org.opencastproject.mediapackage.MediaPackageElement input, String format) voidsetRemoteServiceManager(org.opencastproject.serviceregistry.api.ServiceRegistry serviceRegistry) voidsetTrustedHttpClient(org.opencastproject.security.api.TrustedHttpClient trustedHttpClient) Methods inherited from class org.opencastproject.serviceregistry.api.RemoteBase
closeConnection, elementsFromHttpResponse, getResponse, getResponse, runRequest
-
Constructor Details
-
CaptionServiceRemoteImpl
public CaptionServiceRemoteImpl()
-
-
Method Details
-
convert
public org.opencastproject.job.api.Job convert(org.opencastproject.mediapackage.MediaPackageElement input, String inputFormat, String outputFormat) throws org.opencastproject.caption.api.UnsupportedCaptionFormatException, org.opencastproject.caption.api.CaptionConverterException, org.opencastproject.mediapackage.MediaPackageException - Specified by:
convertin interfaceorg.opencastproject.caption.api.CaptionService- Throws:
org.opencastproject.caption.api.UnsupportedCaptionFormatExceptionorg.opencastproject.caption.api.CaptionConverterExceptionorg.opencastproject.mediapackage.MediaPackageException- See Also:
-
convert
public org.opencastproject.job.api.Job convert(org.opencastproject.mediapackage.MediaPackageElement input, String inputFormat, String outputFormat, String language) throws org.opencastproject.caption.api.UnsupportedCaptionFormatException, org.opencastproject.caption.api.CaptionConverterException, org.opencastproject.mediapackage.MediaPackageException - Specified by:
convertin interfaceorg.opencastproject.caption.api.CaptionService- Throws:
org.opencastproject.caption.api.UnsupportedCaptionFormatExceptionorg.opencastproject.caption.api.CaptionConverterExceptionorg.opencastproject.mediapackage.MediaPackageException- See Also:
-
getLanguageList
public String[] getLanguageList(org.opencastproject.mediapackage.MediaPackageElement input, String format) throws org.opencastproject.caption.api.UnsupportedCaptionFormatException, org.opencastproject.caption.api.CaptionConverterException - Specified by:
getLanguageListin interfaceorg.opencastproject.caption.api.CaptionService- Throws:
org.opencastproject.caption.api.UnsupportedCaptionFormatExceptionorg.opencastproject.caption.api.CaptionConverterException- See Also:
-
setTrustedHttpClient
public void setTrustedHttpClient(org.opencastproject.security.api.TrustedHttpClient trustedHttpClient) - Overrides:
setTrustedHttpClientin classorg.opencastproject.serviceregistry.api.RemoteBase
-
setRemoteServiceManager
public void setRemoteServiceManager(org.opencastproject.serviceregistry.api.ServiceRegistry serviceRegistry) - Overrides:
setRemoteServiceManagerin classorg.opencastproject.serviceregistry.api.RemoteBase
-