@Test public void getRpcReplyClass() throws Exception { Class clazz = NetconfVersionManager.getRpcReplyClass(new RpcV10()); assertEquals(RpcReplyV10.class, clazz); clazz = NetconfVersionManager.getRpcReplyClass(new RpcV11()); assertEquals(RpcReplyV11.class, clazz); clazz = NetconfVersionManager.getRpcReplyClass(NetconfProtocol.VERSION_1_0); assertEquals(RpcReplyV10.class, clazz); clazz = NetconfVersionManager.getRpcReplyClass(NetconfProtocol.VERSION_1_1); assertEquals(RpcReplyV11.class, clazz); }
public static Class getRpcReplyClass(Object rpcObject) { if (rpcObject.getClass() == RpcV10.class) { return RpcReplyV10.class; } if (rpcObject.getClass() == RpcV11.class) { return RpcReplyV11.class; } return null; }
NetconfVersionManager { public static Class getRpcReplyClass(Object rpcObject) { if (rpcObject.getClass() == RpcV10.class) { return RpcReplyV10.class; } if (rpcObject.getClass() == RpcV11.class) { return RpcReplyV11.class; } return null; } }
NetconfVersionManager { public static Class getRpcReplyClass(Object rpcObject) { if (rpcObject.getClass() == RpcV10.class) { return RpcReplyV10.class; } if (rpcObject.getClass() == RpcV11.class) { return RpcReplyV11.class; } return null; } private  NetconfVersionManager(); }
NetconfVersionManager { public static Class getRpcReplyClass(Object rpcObject) { if (rpcObject.getClass() == RpcV10.class) { return RpcReplyV10.class; } if (rpcObject.getClass() == RpcV11.class) { return RpcReplyV11.class; } return null; } private  NetconfVersionManager(); static Class getRpcReplyClass(Object rpcObject); static Class getRpcReplyClass(String rpcNamespace); }
NetconfVersionManager { public static Class getRpcReplyClass(Object rpcObject) { if (rpcObject.getClass() == RpcV10.class) { return RpcReplyV10.class; } if (rpcObject.getClass() == RpcV11.class) { return RpcReplyV11.class; } return null; } private  NetconfVersionManager(); static Class getRpcReplyClass(Object rpcObject); static Class getRpcReplyClass(String rpcNamespace);  }