Class TextAnalysisRestEndpoint
- java.lang.Object
-
- org.opencastproject.rest.AbstractJobProducerEndpoint
-
- org.opencastproject.textanalyzer.impl.endpoint.TextAnalysisRestEndpoint
-
@Path("") public class TextAnalysisRestEndpoint extends org.opencastproject.rest.AbstractJobProducerEndpointThe REST endpoint for MediaAnalysisServices
-
-
Field Summary
Fields Modifier and Type Field Description protected org.opencastproject.textanalyzer.api.TextAnalyzerServiceserviceThe text analyzerprotected org.opencastproject.serviceregistry.api.ServiceRegistryserviceRegistryThe service registry
-
Constructor Summary
Constructors Constructor Description TextAnalysisRestEndpoint()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidactivate(org.osgi.service.component.ComponentContext cc)Callback from OSGi that is called when this service is activated.javax.ws.rs.core.Responseanalyze(String image)org.opencastproject.job.api.JobProducergetService()org.opencastproject.serviceregistry.api.ServiceRegistrygetServiceRegistry()protected voidsetServiceRegistry(org.opencastproject.serviceregistry.api.ServiceRegistry serviceRegistry)Callback from the OSGi declarative services to set the service registry.protected voidsetTextAnalyzer(org.opencastproject.textanalyzer.api.TextAnalyzerService textAnalyzer)Sets the text analyzer
-
-
-
Method Detail
-
activate
public void activate(org.osgi.service.component.ComponentContext cc)
Callback from OSGi that is called when this service is activated.- Parameters:
cc- OSGi component context
-
analyze
@POST @Produces("text/xml") @Path("") public javax.ws.rs.core.Response analyze(@FormParam("image") String image)
-
setServiceRegistry
protected void setServiceRegistry(org.opencastproject.serviceregistry.api.ServiceRegistry serviceRegistry)
Callback from the OSGi declarative services to set the service registry.- Parameters:
serviceRegistry- the service registry
-
setTextAnalyzer
protected void setTextAnalyzer(org.opencastproject.textanalyzer.api.TextAnalyzerService textAnalyzer)
Sets the text analyzer- Parameters:
textAnalyzer- the text analyzer
-
getService
public org.opencastproject.job.api.JobProducer getService()
- Specified by:
getServicein classorg.opencastproject.rest.AbstractJobProducerEndpoint- See Also:
AbstractJobProducerEndpoint.getService()
-
getServiceRegistry
public org.opencastproject.serviceregistry.api.ServiceRegistry getServiceRegistry()
- Specified by:
getServiceRegistryin classorg.opencastproject.rest.AbstractJobProducerEndpoint- See Also:
AbstractJobProducerEndpoint.getServiceRegistry()
-
-