@Test public void buildRpcReplyOkTest() throws Exception { String result = NetconfMessageUtil.buildRpcReplyOk("202"); assertTrue(result.contains("202")); assertTrue(result.contains("ok")); }
public static String buildRpcReplyOk(String messageId) throws DispatchException { NetConfResponse netConfResponse = new NetConfResponse(); netConfResponse.setMessageId(messageId); netConfResponse.setOk(true); return netConfResponse.responseToString(); }
NetconfMessageUtil { public static String buildRpcReplyOk(String messageId) throws DispatchException { NetConfResponse netConfResponse = new NetConfResponse(); netConfResponse.setMessageId(messageId); netConfResponse.setOk(true); return netConfResponse.responseToString(); } }
NetconfMessageUtil { public static String buildRpcReplyOk(String messageId) throws DispatchException { NetConfResponse netConfResponse = new NetConfResponse(); netConfResponse.setMessageId(messageId); netConfResponse.setOk(true); return netConfResponse.responseToString(); } private  NetconfMessageUtil(); }
NetconfMessageUtil { public static String buildRpcReplyOk(String messageId) throws DispatchException { NetConfResponse netConfResponse = new NetConfResponse(); netConfResponse.setMessageId(messageId); netConfResponse.setOk(true); return netConfResponse.responseToString(); } private  NetconfMessageUtil(); static String buildRpcReplyOk(String messageId); static String getParentXmlns(Document request); static Node getFirstNode(Document document, String tagName); static String getMessageIdFromRpcDocument(Document request); static Document getDocumentFromResponse(NetConfResponse netConfResponse); static String getTypeOfNetconfRequest(Document document); static void appendNewElement(Document document, Element parent, String tagName, String value); static ModuleIdentifier buildModuleIdentifier(String name, String namespace, String revision); static String buildModuleCapability(ModuleIdentifier moduleIdentifier); }
NetconfMessageUtil { public static String buildRpcReplyOk(String messageId) throws DispatchException { NetConfResponse netConfResponse = new NetConfResponse(); netConfResponse.setMessageId(messageId); netConfResponse.setOk(true); return netConfResponse.responseToString(); } private  NetconfMessageUtil(); static String buildRpcReplyOk(String messageId); static String getParentXmlns(Document request); static Node getFirstNode(Document document, String tagName); static String getMessageIdFromRpcDocument(Document request); static Document getDocumentFromResponse(NetConfResponse netConfResponse); static String getTypeOfNetconfRequest(Document document); static void appendNewElement(Document document, Element parent, String tagName, String value); static ModuleIdentifier buildModuleIdentifier(String name, String namespace, String revision); static String buildModuleCapability(ModuleIdentifier moduleIdentifier);  }