test_class.declarator: serverHandle
test_class.modifier: private
test_class.original_string: private ServerHandle serverHandle;
test_class.type: ServerHandle
test_class.var_name: serverHandle
test_class.declarator: vendor
test_class.modifier: private
test_class.original_string: private String vendor;
test_class.type: String
test_class.var_name: vendor
test_class.declarator: product
test_class.modifier: private
test_class.original_string: private String product;
test_class.type: String
test_class.var_name: product
test_class.declarator: version
test_class.modifier: private
test_class.original_string: private String version;
test_class.type: String
test_class.var_name: version
test_class.declarator: extraInfo
test_class.modifier: private
test_class.original_string: private Map<String,String> extraInfo;
test_class.type: Map<String,String>
test_class.var_name: extraInfo
test_class.file: agent/core/src/test/java/org/jolokia/detector/ServerHandleTest.java
test_class.identifier: ServerHandleTest
test_case.body: @Test
      public void toJson() {
          JSONObject json = serverHandle.toJSONObject(null);
          assertEquals(json.get("vendor"),vendor);
          assertEquals(json.get("product"),product);
          assertEquals(json.get("version"),version);
          assertEquals(((JSONObject) json.get("extraInfo")).get("extra1"),"value1");
      }
test_case.class_method_signature: ServerHandleTest.toJson()
test_case.full_signature: @Test public void toJson()
test_case.identifier: toJson
test_case.invocations: toJSONObject assertEquals get assertEquals get assertEquals get assertEquals get get
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void toJson()
focal_class.declarator: product
focal_class.modifier: private
focal_class.original_string: private String product;
focal_class.type: String
focal_class.var_name: product
focal_class.declarator: version
focal_class.modifier: private
focal_class.original_string: private String version;
focal_class.type: String
focal_class.var_name: version
focal_class.declarator: extraInfo
focal_class.modifier: private
focal_class.original_string: private Map<String,String> extraInfo;
focal_class.type: Map<String,String>
focal_class.var_name: extraInfo
focal_class.declarator: vendor
focal_class.modifier: private
focal_class.original_string: private String vendor;
focal_class.type: String
focal_class.var_name: vendor
focal_class.file: agent/core/src/main/java/org/jolokia/detector/ServerHandle.java
focal_class.identifier: ServerHandle
focal_class.class_method_signature: ServerHandle.ServerHandle(String vendor, String product, String version, Map<String, String> extraInfo)
focal_class.full_signature: public  ServerHandle(String vendor, String product, String version, Map<String, String> extraInfo)
focal_class.identifier: ServerHandle
focal_class.modifiers: public
focal_class.parameters: (String vendor, String product, String version, Map<String, String> extraInfo)
focal_class.signature:  ServerHandle(String vendor, String product, String version, Map<String, String> extraInfo)
focal_class.class_method_signature: ServerHandle.getVendor()
focal_class.full_signature: public String getVendor()
focal_class.identifier: getVendor
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getVendor()
focal_class.class_method_signature: ServerHandle.getProduct()
focal_class.full_signature: public String getProduct()
focal_class.identifier: getProduct
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getProduct()
focal_class.class_method_signature: ServerHandle.getVersion()
focal_class.full_signature: public String getVersion()
focal_class.identifier: getVersion
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getVersion()
focal_class.class_method_signature: ServerHandle.getExtraInfo(MBeanServerExecutor pServerManager)
focal_class.full_signature: public Map<String,String> getExtraInfo(MBeanServerExecutor pServerManager)
focal_class.identifier: getExtraInfo
focal_class.modifiers: public
focal_class.parameters: (MBeanServerExecutor pServerManager)
focal_class.return: Map<String,String>
focal_class.signature: Map<String,String> getExtraInfo(MBeanServerExecutor pServerManager)
focal_class.class_method_signature: ServerHandle.preDispatch(MBeanServerExecutor pMBeanServerExecutor, JmxRequest pJmxReq)
focal_class.full_signature: public void preDispatch(MBeanServerExecutor pMBeanServerExecutor, JmxRequest pJmxReq)
focal_class.identifier: preDispatch
focal_class.modifiers: public
focal_class.parameters: (MBeanServerExecutor pMBeanServerExecutor, JmxRequest pJmxReq)
focal_class.return: void
focal_class.signature: void preDispatch(MBeanServerExecutor pMBeanServerExecutor, JmxRequest pJmxReq)
focal_class.class_method_signature: ServerHandle.postDetect(MBeanServerExecutor pServerManager, Configuration pConfig, LogHandler pLoghandler)
focal_class.full_signature: public void postDetect(MBeanServerExecutor pServerManager, Configuration pConfig, LogHandler pLoghandler)
focal_class.identifier: postDetect
focal_class.modifiers: public
focal_class.parameters: (MBeanServerExecutor pServerManager, Configuration pConfig, LogHandler pLoghandler)
focal_class.return: void
focal_class.signature: void postDetect(MBeanServerExecutor pServerManager, Configuration pConfig, LogHandler pLoghandler)
focal_class.class_method_signature: ServerHandle.registerMBeanAtServer(MBeanServer pServer, Object pMBean, String pName)
focal_class.full_signature: public ObjectName registerMBeanAtServer(MBeanServer pServer, Object pMBean, String pName)
focal_class.identifier: registerMBeanAtServer
focal_class.modifiers: public
focal_class.parameters: (MBeanServer pServer, Object pMBean, String pName)
focal_class.return: ObjectName
focal_class.signature: ObjectName registerMBeanAtServer(MBeanServer pServer, Object pMBean, String pName)
focal_class.class_method_signature: ServerHandle.toJSONObject(MBeanServerExecutor pServerManager)
focal_class.full_signature: public JSONObject toJSONObject(MBeanServerExecutor pServerManager)
focal_class.identifier: toJSONObject
focal_class.modifiers: public
focal_class.parameters: (MBeanServerExecutor pServerManager)
focal_class.return: JSONObject
focal_class.signature: JSONObject toJSONObject(MBeanServerExecutor pServerManager)
focal_class.class_method_signature: ServerHandle.addNullSafe(JSONObject pRet, String pKey, Object pValue)
focal_class.full_signature: private void addNullSafe(JSONObject pRet, String pKey, Object pValue)
focal_class.identifier: addNullSafe
focal_class.modifiers: private
focal_class.parameters: (JSONObject pRet, String pKey, Object pValue)
focal_class.return: void
focal_class.signature: void addNullSafe(JSONObject pRet, String pKey, Object pValue)
focal_class.class_method_signature: ServerHandle.getDetectorOptions(Configuration pConfig, LogHandler pLogHandler)
focal_class.full_signature: protected JSONObject getDetectorOptions(Configuration pConfig, LogHandler pLogHandler)
focal_class.identifier: getDetectorOptions
focal_class.modifiers: protected
focal_class.parameters: (Configuration pConfig, LogHandler pLogHandler)
focal_class.return: JSONObject
focal_class.signature: JSONObject getDetectorOptions(Configuration pConfig, LogHandler pLogHandler)
focal_method.body: public JSONObject toJSONObject(MBeanServerExecutor pServerManager) {
          JSONObject ret = new JSONObject();
          addNullSafe(ret, "vendor", vendor);
          addNullSafe(ret, "product", product);
          addNullSafe(ret, "version", version);
          Map<String,String> extra = getExtraInfo(pServerManager);
          if (extra != null) {
              JSONObject jsonExtra = new JSONObject();
              for (Map.Entry<String,String> entry : extra.entrySet()) {
                  jsonExtra.put(entry.getKey(),entry.getValue());
              }
              ret.put("extraInfo", jsonExtra);
          }
          return ret;
      }
focal_method.class_method_signature: ServerHandle.toJSONObject(MBeanServerExecutor pServerManager)
focal_method.full_signature: public JSONObject toJSONObject(MBeanServerExecutor pServerManager)
focal_method.identifier: toJSONObject
focal_method.invocations: addNullSafe addNullSafe addNullSafe getExtraInfo entrySet put getKey getValue put
focal_method.modifiers: public
focal_method.parameters: (MBeanServerExecutor pServerManager)
focal_method.return: JSONObject
focal_method.signature: JSONObject toJSONObject(MBeanServerExecutor pServerManager)