test_class.declarator: procParams
test_class.modifier: private
test_class.original_string: private ProcessingParameters procParams;
test_class.type: ProcessingParameters
test_class.var_name: procParams
test_class.file: agent/core/src/test/java/org/jolokia/request/JmxRequestFactoryTest.java
test_class.identifier: JmxRequestFactoryTest
test_case.body: @Test(expectedExceptions = { ClassCastException.class } )
      public void castException() {
          JmxReadRequest req = JmxRequestFactory.createGetRequest("exec/java.lang:type=Memory/gc", procParams);
      }
test_case.class_method_signature: JmxRequestFactoryTest.castException()
test_case.full_signature: @Test(expectedExceptions = { ClassCastException.class } ) public void castException()
test_case.identifier: castException
test_case.invocations: createGetRequest
test_case.modifiers: @Test(expectedExceptions = { ClassCastException.class } ) public
test_case.parameters: ()
test_case.return: void
test_case.signature: void castException()
focal_class.declarator: CREATOR_MAP
focal_class.modifier: private static final
focal_class.original_string: private static final Map<RequestType,RequestCreator> CREATOR_MAP;
focal_class.type: Map<RequestType,RequestCreator>
focal_class.var_name: CREATOR_MAP
focal_class.file: agent/core/src/main/java/org/jolokia/request/JmxRequestFactory.java
focal_class.identifier: JmxRequestFactory
focal_class.class_method_signature: JmxRequestFactory.JmxRequestFactory()
focal_class.full_signature: private  JmxRequestFactory()
focal_class.identifier: JmxRequestFactory
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.signature:  JmxRequestFactory()
focal_class.class_method_signature: JmxRequestFactory.createGetRequest(String pPathInfo, ProcessingParameters pProcessingParameters)
focal_class.full_signature: public static R createGetRequest(String pPathInfo, ProcessingParameters pProcessingParameters)
focal_class.identifier: createGetRequest
focal_class.modifiers: public static
focal_class.parameters: (String pPathInfo, ProcessingParameters pProcessingParameters)
focal_class.return: R
focal_class.signature: R createGetRequest(String pPathInfo, ProcessingParameters pProcessingParameters)
focal_class.class_method_signature: JmxRequestFactory.createPostRequest(Map<String, ?> pRequestMap, ProcessingParameters pProcessingParams)
focal_class.full_signature: public static R createPostRequest(Map<String, ?> pRequestMap, ProcessingParameters pProcessingParams)
focal_class.identifier: createPostRequest
focal_class.modifiers: public static
focal_class.parameters: (Map<String, ?> pRequestMap, ProcessingParameters pProcessingParams)
focal_class.return: R
focal_class.signature: R createPostRequest(Map<String, ?> pRequestMap, ProcessingParameters pProcessingParams)
focal_class.class_method_signature: JmxRequestFactory.createPostRequests(List pJsonRequests, ProcessingParameters pProcessingParams)
focal_class.full_signature: public static List<JmxRequest> createPostRequests(List pJsonRequests, ProcessingParameters pProcessingParams)
focal_class.identifier: createPostRequests
focal_class.modifiers: public static
focal_class.parameters: (List pJsonRequests, ProcessingParameters pProcessingParams)
focal_class.return: List<JmxRequest>
focal_class.signature: List<JmxRequest> createPostRequests(List pJsonRequests, ProcessingParameters pProcessingParams)
focal_class.class_method_signature: JmxRequestFactory.extractPathInfo(String pPathInfo, ProcessingParameters pProcessingParams)
focal_class.full_signature: private static String extractPathInfo(String pPathInfo, ProcessingParameters pProcessingParams)
focal_class.identifier: extractPathInfo
focal_class.modifiers: private static
focal_class.parameters: (String pPathInfo, ProcessingParameters pProcessingParams)
focal_class.return: String
focal_class.signature: String extractPathInfo(String pPathInfo, ProcessingParameters pProcessingParams)
focal_class.class_method_signature: JmxRequestFactory.normalizePathInfo(String pPathInfo)
focal_class.full_signature: private static String normalizePathInfo(String pPathInfo)
focal_class.identifier: normalizePathInfo
focal_class.modifiers: private static
focal_class.parameters: (String pPathInfo)
focal_class.return: String
focal_class.signature: String normalizePathInfo(String pPathInfo)
focal_class.class_method_signature: JmxRequestFactory.getCreator(RequestType pType)
focal_class.full_signature: private static RequestCreator getCreator(RequestType pType)
focal_class.identifier: getCreator
focal_class.modifiers: private static
focal_class.parameters: (RequestType pType)
focal_class.return: RequestCreator
focal_class.signature: RequestCreator getCreator(RequestType pType)
focal_method.body: public static <R extends JmxRequest> R createGetRequest(String pPathInfo, ProcessingParameters pProcessingParameters) {
          RequestType type = null;
          try {
              String pathInfo = extractPathInfo(pPathInfo, pProcessingParameters);
  
              // Get all path elements as a reverse stack
              Stack<String> elements = EscapeUtil.extractElementsFromPath(pathInfo);
  
              // Use version by default if no type is given
              type = elements.size() != 0 ? RequestType.getTypeByName(elements.pop()) : RequestType.VERSION;
  
              // Parse request
              return (R) getCreator(type).create(elements, pProcessingParameters);
          } catch (MalformedObjectNameException e) {
              throw new IllegalArgumentException("Invalid object name. " + e.getMessage(),e);
          } catch (EmptyStackException exp) {
              throw new IllegalArgumentException("Invalid arguments in pathinfo " + pPathInfo + (type != null ? " for command " + type : ""),exp);
          }
      }
focal_method.class_method_signature: JmxRequestFactory.createGetRequest(String pPathInfo, ProcessingParameters pProcessingParameters)
focal_method.full_signature: public static R createGetRequest(String pPathInfo, ProcessingParameters pProcessingParameters)
focal_method.identifier: createGetRequest
focal_method.invocations: extractPathInfo extractElementsFromPath size getTypeByName pop create getCreator getMessage
focal_method.modifiers: public static
focal_method.parameters: (String pPathInfo, ProcessingParameters pProcessingParameters)
focal_method.return: R
focal_method.signature: R createGetRequest(String pPathInfo, ProcessingParameters pProcessingParameters)