MCPcopy Create free account
hub / github.com/Juniper/netconf-java / executeRPC

Method executeRPC

src/main/java/net/juniper/netconf/Device.java:765–771  ·  view source on GitHub ↗

Send an RPC(as String object) over the default Netconf session and get the response as an XML object. Convenience overload for raw‑string payloads. @param rpcContent RPC content to be sent. For example, to send an rpc <rpc><get-chassis-inventory/></rpc>, t

(String rpcContent)

Source from the content-addressed store, hash-verified

763 * @throws org.xml.sax.SAXException If there are errors parsing the XML reply.
764 */
765 public XML executeRPC(String rpcContent) throws SAXException, IOException {
766 if (netconfSession == null) {
767 throw new IllegalStateException("Cannot execute RPC, you need to " +
768 "establish a connection first.");
769 }
770 return netconfSession.executeRPC(rpcContent);
771 }
772
773 /**
774 * Send an RPC(as XML object) over the Netconf session and get the response

Callers 7

testGetConfigMethod · 0.95
testRPCErrorHandlingMethod · 0.95
mainMethod · 0.95
mainMethod · 0.95
mainMethod · 0.95

Calls

no outgoing calls