Class CoverImageServiceRemoteImpl
java.lang.Object
org.opencastproject.serviceregistry.api.RemoteBase
org.opencastproject.coverimage.remote.CoverImageServiceRemoteImpl
- All Implemented Interfaces:
CoverImageService
Remote implementation for
CoverImageService-
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, remoteServiceManager, serviceTypeFields inherited from interface org.opencastproject.coverimage.CoverImageService
JOB_TYPE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongenerateCoverImage(String xml, String xsl, String width, String height, String posterImageUri, String targetFlavor) Creates a job for creating a cover image for movie/media package.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, elementsFromHttpResponse, getResponse, getResponse, runRequest
-
Constructor Details
-
CoverImageServiceRemoteImpl
public CoverImageServiceRemoteImpl()Default constructor
-
-
Method Details
-
generateCoverImage
public Job generateCoverImage(String xml, String xsl, String width, String height, String posterImageUri, String targetFlavor) throws CoverImageException Description copied from interface:CoverImageServiceCreates a job for creating a cover image for movie/media package.- Specified by:
generateCoverImagein interfaceCoverImageService- Parameters:
xml- metadata as XML. Will be handed over to the XSL transformation. Optional, if not given, there should be a fallbackxsl- the XSL stylesheet used to create the SVG version of the cover imagewidth- the width of the resulting imageheight- the height of the resulting imageposterImageUri- file URI to an additional poster image (optional)targetFlavor- target flavor- Returns:
- a job instance
- Throws:
CoverImageException- if there is an error while creating the job
-
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-
-