Interface TemplateRequestDriver


  • public interface TemplateRequestDriver
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      java.lang.Object doRequest​(org.onosproject.netconf.NetconfSession session, java.lang.String templateName, java.util.Map<java.lang.String,​java.lang.Object> templateContext, java.lang.String baseXPath, javax.xml.namespace.QName returnType)
      Executes the named NETCONF template against the specified session, returning the referenced XML node as the specified type.
    • Method Detail

      • doRequest

        java.lang.Object doRequest​(org.onosproject.netconf.NetconfSession session,
                                   java.lang.String templateName,
                                   java.util.Map<java.lang.String,​java.lang.Object> templateContext,
                                   java.lang.String baseXPath,
                                   javax.xml.namespace.QName returnType)
                            throws org.onosproject.netconf.NetconfException
        Executes the named NETCONF template against the specified session, returning the referenced XML node as the specified type.
        Parameters:
        session - NETCONF serssion
        templateName - name of NETCONF request template to execute
        templateContext - variable to values substitutions to be used against templates
        baseXPath - XPath expression to specify the returned document node
        returnType - expected return type of the referenced node
        Returns:
        XML document node referenced by the baseXPath
        Throws:
        org.onosproject.netconf.NetconfException - if any IO, XPath, or NETCONF exception occurs