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,
boolean force)
Compose a new composed Module.
|
void |
deleteModule(java.lang.String name,
RESTModuleType moduleType)
Request deletion of module with given name and type.
|
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() |
ModuleDefinitionResource |
uploadModule(java.lang.String name,
RESTModuleType type,
org.springframework.core.io.Resource bytes,
boolean force)
Create a new module by uploading the contents of an archive.
|
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, boolean force)
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 uploadModule(java.lang.String name, RESTModuleType type, org.springframework.core.io.Resource bytes, boolean force) throws java.io.IOException
ModuleOperations
uploadModule
in interface ModuleOperations
java.io.IOException
public ModuleDefinitionResource.Page list(RESTModuleType type)
ModuleOperations
list
in interface ModuleOperations
public java.lang.String toString()
toString
in class java.lang.Object