Class ScvEnabledRestClientImpl

  • All Implemented Interfaces:
    RestClient

    public class ScvEnabledRestClientImpl
    extends java.lang.Object
    implements RestClient
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static org.slf4j.Logger LOG  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getSnmpV3Users()
      Used to fetch snmpV3users from REST endpoint.
      java.lang.String getVersion()
      Retrieves the OpenNMS version.
      void ping()
      Used to verify connectivity with the REST endpoint.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • LOG

        public static final org.slf4j.Logger LOG
    • Constructor Detail

      • ScvEnabledRestClientImpl

        public ScvEnabledRestClientImpl​(java.lang.String url,
                                        SecureCredentialsVault scv,
                                        java.lang.String scvAlias)
                                 throws java.net.MalformedURLException
        Throws:
        java.net.MalformedURLException
    • Method Detail

      • getVersion

        public java.lang.String getVersion()
                                    throws java.lang.Exception
        Description copied from interface: RestClient
        Retrieves the OpenNMS version.
        Specified by:
        getVersion in interface RestClient
        Throws:
        java.lang.Exception - on failure
      • ping

        public void ping()
                  throws java.lang.Exception
        Description copied from interface: RestClient
        Used to verify connectivity with the REST endpoint.
        Specified by:
        ping in interface RestClient
        Throws:
        java.lang.Exception - on failure
      • getSnmpV3Users

        public java.lang.String getSnmpV3Users()
                                        throws java.lang.Exception
        Description copied from interface: RestClient
        Used to fetch snmpV3users from REST endpoint.
        Specified by:
        getSnmpV3Users in interface RestClient
        Throws:
        java.lang.Exception - on failure