T - the model classpublic abstract class DefaultRestHandler<T extends INamed> extends AbstractApiHandler
mapper| Modifier | Constructor and Description |
|---|---|
protected |
DefaultRestHandler(String cloudconductorUrl) |
| Modifier and Type | Method and Description |
|---|---|
void |
delete(String name) |
Set<T> |
get() |
T |
get(String name) |
protected abstract Class<T> |
getAPIClass() |
protected abstract String |
getDefaultPath() |
protected com.fasterxml.jackson.databind.JavaType |
getSetType() |
protected String |
pathGenerator(String path,
String... replace) |
void |
save(T apiObject) |
_delete, _get, _get, _post, _post, _post, _put, _put, _put, _put, assertSuccess, dataFromResponse, getSetType, objectFromResponse, objectFromResponse, request, request, request, setPasswordMode, setTokenModeprotected DefaultRestHandler(String cloudconductorUrl)
protected abstract String getDefaultPath()
protected com.fasterxml.jackson.databind.JavaType getSetType()
public Set<T> get() throws CloudConductorException
CloudConductorException - Error indicating connection or data problemspublic void save(T apiObject) throws CloudConductorException
apiObject - TCloudConductorException - Error indicating connection or data problemspublic T get(String name) throws CloudConductorException
name - the identifier of the object TCloudConductorException - Error indicating connection or data problemspublic void delete(String name) throws CloudConductorException
name - the identifier of the object TCloudConductorException - Error indicating connection or data problemsprotected final String pathGenerator(String path, String... replace)
pathGenerator in class AbstractApiHandlerCopyright © 2014-2017 Cinovo AG. All Rights Reserved.