@Test public void buildRpcReplyOk() throws Exception { String response = NetconfRpcReplyMessage.buildRpcReplyOkV10(MESSAGE_ID); assertTrue(response.contains(MESSAGE_ID)); assertTrue(response.contains(V10)); response = NetconfRpcReplyMessage.buildRpcReplyOkV11(MESSAGE_ID); assertTrue(response.contains(MESSAGE_ID)); assertTrue(response.contains(V11)); assertTrue(response.contains("ok")); }
public static <T extends RpcReply> String buildRpcReplyOk(Class<T> replyClass, String messageId) { return buildRpcReplyContext(replyClass, messageId, reply -> { reply.setOk(new Ok()); }); }
NetconfRpcReplyMessage extends NetconfPayload { public static <T extends RpcReply> String buildRpcReplyOk(Class<T> replyClass, String messageId) { return buildRpcReplyContext(replyClass, messageId, reply -> { reply.setOk(new Ok()); }); } }
NetconfRpcReplyMessage extends NetconfPayload { public static <T extends RpcReply> String buildRpcReplyOk(Class<T> replyClass, String messageId) { return buildRpcReplyContext(replyClass, messageId, reply -> { reply.setOk(new Ok()); }); } private  NetconfRpcReplyMessage();  NetconfRpcReplyMessage(String netconfMessage); }
NetconfRpcReplyMessage extends NetconfPayload { public static <T extends RpcReply> String buildRpcReplyOk(Class<T> replyClass, String messageId) { return buildRpcReplyContext(replyClass, messageId, reply -> { reply.setOk(new Ok()); }); } private  NetconfRpcReplyMessage();  NetconfRpcReplyMessage(String netconfMessage); static List<Object> getRpcReplyPayloadObjects(RpcReply rpcReply); static List<Document> getRpcReplyPayloads(RpcReply rpcReply); static RpcReply getRpcReply(String netconfMessage); RpcReply getRpcReply(); static String buildRpcReplyOkV10(String messageId); static String buildRpcReplyOkV11(String messageId); static String buildRpcReplyDataV10(String messageId, List<Node> nodes); static String buildRpcReplyDataV11(String messageId, List<Node> nodes); static String buildRpcReplyErrorV10(String messageId, RpcError rpcError); static String buildRpcReplyErrorV11(String messageId, RpcError rpcError); static String buildRpcReplyOk(Class<T> replyClass, String messageId); static String buildRpcReplyData(Class<T> replyClass,
                                                                String messageId, List<Object> objects); static String buildRpcReplyError(Class<T> replyClass,
                                                                 String messageId, RpcError rpcError); }
NetconfRpcReplyMessage extends NetconfPayload { public static <T extends RpcReply> String buildRpcReplyOk(Class<T> replyClass, String messageId) { return buildRpcReplyContext(replyClass, messageId, reply -> { reply.setOk(new Ok()); }); } private  NetconfRpcReplyMessage();  NetconfRpcReplyMessage(String netconfMessage); static List<Object> getRpcReplyPayloadObjects(RpcReply rpcReply); static List<Document> getRpcReplyPayloads(RpcReply rpcReply); static RpcReply getRpcReply(String netconfMessage); RpcReply getRpcReply(); static String buildRpcReplyOkV10(String messageId); static String buildRpcReplyOkV11(String messageId); static String buildRpcReplyDataV10(String messageId, List<Node> nodes); static String buildRpcReplyDataV11(String messageId, List<Node> nodes); static String buildRpcReplyErrorV10(String messageId, RpcError rpcError); static String buildRpcReplyErrorV11(String messageId, RpcError rpcError); static String buildRpcReplyOk(Class<T> replyClass, String messageId); static String buildRpcReplyData(Class<T> replyClass,
                                                                String messageId, List<Object> objects); static String buildRpcReplyError(Class<T> replyClass,
                                                                 String messageId, RpcError rpcError);  }