Class TextAnalysisRemoteImpl
java.lang.Object
org.opencastproject.serviceregistry.api.RemoteBase
org.opencastproject.textanalyzer.remote.TextAnalysisRemoteImpl
- All Implemented Interfaces:
TextAnalyzerService
-
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.textanalyzer.api.TextAnalyzerService
JOB_TYPE, OPERATION -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionextract(Attachment image) Takes the given image and returns a receipt that can be used to get the resulting catalog.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
-
TextAnalysisRemoteImpl
public TextAnalysisRemoteImpl()
-
-
Method Details
-
extract
Takes the given image and returns a receipt that can be used to get the resulting catalog.- Specified by:
extractin interfaceTextAnalyzerService- Parameters:
image- element to analyze- Returns:
- the metadata
- Throws:
TextAnalyzerException- if the text in this image can not be analyzed
-
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-
-