public class ScvEnabledRestClientImpl extends Object implements RestClient
Modifier and Type | Field and Description |
---|---|
static org.slf4j.Logger |
LOG |
Constructor and Description |
---|
ScvEnabledRestClientImpl(String url,
SecureCredentialsVault scv,
String scvAlias) |
Modifier and Type | Method and Description |
---|---|
String |
getSnmpV3Users()
Used to fetch snmpV3users from REST endpoint.
|
String |
getVersion()
Retrieves the OpenNMS version.
|
void |
ping()
Used to verify connectivity with the REST endpoint.
|
public ScvEnabledRestClientImpl(String url, SecureCredentialsVault scv, String scvAlias) throws MalformedURLException
MalformedURLException
public String getVersion() throws Exception
RestClient
getVersion
in interface RestClient
Exception
- on failurepublic void ping() throws Exception
RestClient
ping
in interface RestClient
Exception
- on failurepublic String getSnmpV3Users() throws Exception
RestClient
getSnmpV3Users
in interface RestClient
Exception
- on failureCopyright © 2017. All rights reserved.