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, elementsFromHttpResponse, remoteServiceManager, serviceType

    Fields inherited from interface org.opencastproject.caption.api.CaptionService

    JOB_TYPE
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.opencastproject.job.api.Job
    convert(org.opencastproject.mediapackage.MediaPackageElement input, String inputFormat, String outputFormat)
     
    org.opencastproject.job.api.Job
    convert(org.opencastproject.mediapackage.MediaPackageElement input, String inputFormat, String outputFormat, String language)
     
    getLanguageList(org.opencastproject.mediapackage.MediaPackageElement input, String format)
     
    void
    setRemoteServiceManager(org.opencastproject.serviceregistry.api.ServiceRegistry serviceRegistry)
     
    void
    setTrustedHttpClient(org.opencastproject.security.api.TrustedHttpClient trustedHttpClient)
     

    Methods inherited from class org.opencastproject.serviceregistry.api.RemoteBase

    closeConnection, getResponse, getResponse, runRequest

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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:
      convert in interface org.opencastproject.caption.api.CaptionService
      Throws:
      org.opencastproject.caption.api.UnsupportedCaptionFormatException
      org.opencastproject.caption.api.CaptionConverterException
      org.opencastproject.mediapackage.MediaPackageException
      See Also:
      • CaptionService.convert(MediaPackageElement, String, String)
    • 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:
      convert in interface org.opencastproject.caption.api.CaptionService
      Throws:
      org.opencastproject.caption.api.UnsupportedCaptionFormatException
      org.opencastproject.caption.api.CaptionConverterException
      org.opencastproject.mediapackage.MediaPackageException
      See Also:
      • CaptionService.convert(MediaPackageElement, String, String, String)
    • getLanguageList

      public String[] getLanguageList(org.opencastproject.mediapackage.MediaPackageElement input, String format) throws org.opencastproject.caption.api.UnsupportedCaptionFormatException, org.opencastproject.caption.api.CaptionConverterException
      Specified by:
      getLanguageList in interface org.opencastproject.caption.api.CaptionService
      Throws:
      org.opencastproject.caption.api.UnsupportedCaptionFormatException
      org.opencastproject.caption.api.CaptionConverterException
      See Also:
      • CaptionService.getLanguageList(MediaPackageElement, String)
    • setTrustedHttpClient

      public void setTrustedHttpClient(org.opencastproject.security.api.TrustedHttpClient trustedHttpClient)
      Overrides:
      setTrustedHttpClient in class org.opencastproject.serviceregistry.api.RemoteBase
    • setRemoteServiceManager

      public void setRemoteServiceManager(org.opencastproject.serviceregistry.api.ServiceRegistry serviceRegistry)
      Overrides:
      setRemoteServiceManager in class org.opencastproject.serviceregistry.api.RemoteBase