public class ServiceHandler extends DefaultRestHandler<Service>
mapper| Constructor and Description |
|---|
ServiceHandler(String cloudconductorUrl) |
| Modifier and Type | Method and Description |
|---|---|
void |
addPackage(String service,
String pkg) |
protected Class<Service> |
getAPIClass() |
protected String |
getDefaultPath() |
Set<Package> |
getPackages(String service) |
void |
removePackage(String service,
String pkg) |
delete, get, get, getSetType, pathGenerator, save_delete, _get, _get, _post, _post, _post, _put, _put, _put, _put, assertSuccess, dataFromResponse, getSetType, objectFromResponse, objectFromResponse, request, request, requestpublic ServiceHandler(String cloudconductorUrl)
cloudconductorUrl - the config server urlprotected String getDefaultPath()
getDefaultPath in class DefaultRestHandler<Service>protected Class<Service> getAPIClass()
getAPIClass in class DefaultRestHandler<Service>public Set<Package> getPackages(String service) throws CloudConductorException
service - the service nameCloudConductorException - Error indicating connection or data problemspublic void addPackage(String service, String pkg) throws CloudConductorException
service - the service namepkg - the package nameCloudConductorException - Error indicating connection or data problemspublic void removePackage(String service, String pkg) throws CloudConductorException
service - the service namepkg - the package nameCloudConductorException - Error indicating connection or data problemsCopyright © 2013-2014 Cinovo AG. All Rights Reserved.