Class MultiKodexRestService
- java.lang.Object
-
- de.iip_ecosphere.platform.services.environment.AbstractDelegatingService<S>
-
- de.iip_ecosphere.platform.services.environment.AbstractDelegatingMultiService<KodexRestService<java.lang.String,java.lang.String>>
-
- de.iip_ecosphere.platform.security.services.kodex.MultiKodexRestService
-
- All Implemented Interfaces:
de.iip_ecosphere.platform.services.environment.GenericMultiTypeService,de.iip_ecosphere.platform.services.environment.ParameterConfigurerProvider,de.iip_ecosphere.platform.services.environment.Service,de.iip_ecosphere.platform.services.environment.switching.ServiceBase
public class MultiKodexRestService extends de.iip_ecosphere.platform.services.environment.AbstractDelegatingMultiService<KodexRestService<java.lang.String,java.lang.String>>
Multi-type KODEX Rest service.- Author:
- Holger Eichelberger, SSE
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected classMultiKodexRestService.ExKodexRestServiceExtended KODEX service for multi-type queries.
-
Field Summary
Fields Modifier and Type Field Description private java.lang.StringdataSpec
-
Constructor Summary
Constructors Constructor Description MultiKodexRestService(de.iip_ecosphere.platform.services.environment.YamlService yaml, java.lang.String dataSpec)Creates an instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected KodexRestService<java.lang.String,java.lang.String>createService(de.iip_ecosphere.platform.services.environment.YamlService yaml)Creates the nested service instance to delegate to.protected voidinitService(de.iip_ecosphere.platform.services.environment.YamlService yaml)protected voidprocessImpl(java.lang.String inType, java.lang.String data)-
Methods inherited from class de.iip_ecosphere.platform.services.environment.AbstractDelegatingMultiService
attachIngestor, getImpl, getLogger, handleResult, process, processSync, registerInputTypeTranslator, registerOutputTypeTranslator
-
Methods inherited from class de.iip_ecosphere.platform.services.environment.AbstractDelegatingService
activate, assignService, getDescription, getId, getKind, getName, getService, getState, getVersion, isDeployable, isTopLevel, migrate, passivate, reconfigure, setState, switchTo, update
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface de.iip_ecosphere.platform.services.environment.GenericMultiTypeService
processQuiet, processSyncQuiet
-
-
-
-
Constructor Detail
-
MultiKodexRestService
public MultiKodexRestService(de.iip_ecosphere.platform.services.environment.YamlService yaml, java.lang.String dataSpec)Creates an instance.- Parameters:
yaml- the service description YAMLdataSpec- name of the data spec file (within the process home path) to pass to KODEX; related files such as api or actions must be there as well and referenced from the data spec file
-
-
Method Detail
-
initService
protected void initService(de.iip_ecosphere.platform.services.environment.YamlService yaml)
- Overrides:
initServicein classde.iip_ecosphere.platform.services.environment.AbstractDelegatingService<KodexRestService<java.lang.String,java.lang.String>>
-
createService
protected KodexRestService<java.lang.String,java.lang.String> createService(de.iip_ecosphere.platform.services.environment.YamlService yaml)
Creates the nested service instance to delegate to.- Specified by:
createServicein classde.iip_ecosphere.platform.services.environment.AbstractDelegatingService<KodexRestService<java.lang.String,java.lang.String>>- Parameters:
yaml- the service description YAML- Returns:
- the service instance
-
processImpl
protected void processImpl(java.lang.String inType, java.lang.String data) throws java.io.IOException- Specified by:
processImplin classde.iip_ecosphere.platform.services.environment.AbstractDelegatingMultiService<KodexRestService<java.lang.String,java.lang.String>>- Throws:
java.io.IOException
-
-