/** * Create a request out of a parameter map as obtained from a POST request. The request itself is * marked as a POST request. * * @param pMap JSON object as map representing the request * @throws MalformedObjectNameException if the name could not properly bw translated into a JMX * {@link javax.management.ObjectName} */ JmxRequest(Map<String, ?> pMap) throws MalformedObjectNameException { type = Type.getTypeByName((String) pMap.get("type")); initObjectName((String) pMap.get("mbean")); initAttribute(pMap.get("attribute")); initPath((String) pMap.get("path")); initArguments((List) pMap.get("arguments")); value = (String) pMap.get("value"); operation = (String) pMap.get("operation"); initTargetConfig((Map) pMap.get("target")); initProcessingConfig((Map<String, ?>) pMap.get("config")); initValueFaultHandler(); method = HttpMethod.POST; }