@Test public void getOriginalMessageTest() throws Exception { String request = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n" + "<rpc message-id=\"10101\" xmlns=\"urn:ietf:params:xml:ns:netconf:base:1.0\">\n" + "<get-config xmlns=\"urn:ietf:params:xml:ns:netconf:base:1.0\">\n" + " <source>\n" + " <running/>\n" + " </source>\n" + " <filter type=\"subtree\">\n" + " <managed-devices xmlns=\"urn:bbf:yang:obbaa:network-manager\">\n" + " <device/>\n" + " </managed-devices>\n" + " </filter>\n" + "</get-config>\n" + "</rpc>\n"; NetconfRpcMessage netconfRpcMessage = new NetconfRpcMessage(request); assertEquals(request, netconfRpcMessage.getOriginalMessage()); }
public String getOriginalMessage() { return originalMessage; }
NetconfRpcMessage extends NetconfPayload { public String getOriginalMessage() { return originalMessage; } }
NetconfRpcMessage extends NetconfPayload { public String getOriginalMessage() { return originalMessage; } private  NetconfRpcMessage();  NetconfRpcMessage(String netconfMessage); }
NetconfRpcMessage extends NetconfPayload { public String getOriginalMessage() { return originalMessage; } private  NetconfRpcMessage();  NetconfRpcMessage(String netconfMessage); static NetconfRpcMessage getInstance(String netconfRequest); static List<Document> getRpcPayloads(Rpc rpc); static List<Object> getRpcPayloadObjects(Rpc rpc); static Rpc getRpc(String netconfMessage); Rpc getRpc(); String getOriginalMessage(); String buildRpcReplyOk(); String buildRpcReplyError(String error); }
NetconfRpcMessage extends NetconfPayload { public String getOriginalMessage() { return originalMessage; } private  NetconfRpcMessage();  NetconfRpcMessage(String netconfMessage); static NetconfRpcMessage getInstance(String netconfRequest); static List<Document> getRpcPayloads(Rpc rpc); static List<Object> getRpcPayloadObjects(Rpc rpc); static Rpc getRpc(String netconfMessage); Rpc getRpc(); String getOriginalMessage(); String buildRpcReplyOk(); String buildRpcReplyError(String error);  }