public class ModuleTemplate extends java.lang.Object implements ModuleOperations
Modifier and Type | Field and Description |
---|---|
protected java.util.Map<java.lang.String,org.springframework.hateoas.UriTemplate> |
resources
Holds discovered URLs of the API.
|
protected org.springframework.web.client.RestTemplate |
restTemplate
A template used for http interaction.
|
Modifier and Type | Method and Description |
---|---|
ModuleDefinitionResource |
composeModule(java.lang.String name,
java.lang.String definition)
Compose a new virtual Module.
|
void |
deleteModule(java.lang.String name,
RESTModuleType moduleType)
Request deletion of module with given name and type.
|
java.lang.String |
downloadConfigurationFile(RESTModuleType type,
java.lang.String name)
Get the configuration file associated with the provided module information.
|
DetailedModuleDefinitionResource |
info(java.lang.String name,
RESTModuleType type)
Retrieve information about a particular module.
|
ModuleDefinitionResource.Page |
list(RESTModuleType type)
List modules known to the system.
|
java.lang.String |
toString() |
protected org.springframework.web.client.RestTemplate restTemplate
protected java.util.Map<java.lang.String,org.springframework.hateoas.UriTemplate> resources
public ModuleDefinitionResource composeModule(java.lang.String name, java.lang.String definition)
ModuleOperations
composeModule
in interface ModuleOperations
public void deleteModule(java.lang.String name, RESTModuleType moduleType)
ModuleOperations
deleteModule
in interface ModuleOperations
public DetailedModuleDefinitionResource info(java.lang.String name, RESTModuleType type)
ModuleOperations
info
in interface ModuleOperations
public ModuleDefinitionResource.Page list(RESTModuleType type)
ModuleOperations
list
in interface ModuleOperations
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String downloadConfigurationFile(RESTModuleType type, java.lang.String name)
ModuleOperations
downloadConfigurationFile
in interface ModuleOperations
type
- Must not be nullname
- Must not be empty