test_class.file: upload/apache/src/test/java/cloud/piranha/upload/apache/ApacheMultiPartManagerTest.java
test_class.identifier: ApacheMultiPartManagerTest
test_case.body: @Test
      void testGetPart() throws Exception {
          DefaultWebApplication application = new DefaultWebApplication();
          DefaultWebApplicationRequest request = new DefaultWebApplicationRequest();
          request.setContentType("multipart/form-data");
          request.setMethod("POST");
          ApacheMultiPartManager manager = new ApacheMultiPartManager();
          assertNull(manager.getPart(application, request, "part_test"));
      }
test_case.class_method_signature: ApacheMultiPartManagerTest.testGetPart()
test_case.full_signature: @Test void testGetPart()
test_case.identifier: testGetPart
test_case.invocations: setContentType setMethod assertNull getPart
test_case.modifiers: @Test
test_case.parameters: ()
test_case.return: void
test_case.signature: void testGetPart()
focal_class.declarator: LOGGER = Logger.getLogger(
              ApacheMultiPartManager.class.getPackageName())
focal_class.modifier: private static final
focal_class.original_string: private static final Logger LOGGER = Logger.getLogger(
              ApacheMultiPartManager.class.getPackageName());
focal_class.type: Logger
focal_class.var_name: LOGGER
focal_class.file: upload/apache/src/main/java/cloud/piranha/upload/apache/ApacheMultiPartManager.java
focal_class.identifier: ApacheMultiPartManager
focal_class.interfaces: implements MultiPartManager
focal_class.class_method_signature: ApacheMultiPartManager.getParts(WebApplication webApplication,
              WebApplicationRequest request)
focal_class.full_signature: @Override public Collection<Part> getParts(WebApplication webApplication,
              WebApplicationRequest request)
focal_class.identifier: getParts
focal_class.modifiers: @Override public
focal_class.parameters: (WebApplication webApplication,
              WebApplicationRequest request)
focal_class.return: Collection<Part>
focal_class.signature: Collection<Part> getParts(WebApplication webApplication,
              WebApplicationRequest request)
focal_class.class_method_signature: ApacheMultiPartManager.getPart(WebApplication webApplication,
              WebApplicationRequest request, String name)
focal_class.full_signature: @Override public Part getPart(WebApplication webApplication,
              WebApplicationRequest request, String name)
focal_class.identifier: getPart
focal_class.modifiers: @Override public
focal_class.parameters: (WebApplication webApplication,
              WebApplicationRequest request, String name)
focal_class.return: Part
focal_class.signature: Part getPart(WebApplication webApplication,
              WebApplicationRequest request, String name)
focal_class.class_method_signature: ApacheMultiPartManager.setupFileUpload(WebApplication webApplication)
focal_class.full_signature: private synchronized ServletFileUpload setupFileUpload(WebApplication webApplication)
focal_class.identifier: setupFileUpload
focal_class.modifiers: private synchronized
focal_class.parameters: (WebApplication webApplication)
focal_class.return: ServletFileUpload
focal_class.signature: ServletFileUpload setupFileUpload(WebApplication webApplication)
focal_method.body: @Override
      public Part getPart(WebApplication webApplication,
              WebApplicationRequest request, String name) throws ServletException {
  
          ApacheMultiPart result = null;
          LOGGER.log(FINE, "Getting part: {0} for request: {1}",
                  new Object[]{name, request});
          if (ServletFileUpload.isMultipartContent(request)) {
              try {
                  ServletFileUpload upload = setupFileUpload(webApplication);
                  List<FileItem> items = upload.parseRequest(request);
                  for (FileItem item : items) {
                      if (item.getName().equals(name)) {
                          result = new ApacheMultiPart(item);
                          break;
                      }
                  }
              } catch (FileUploadException fue) {
                  LOGGER.log(WARNING, "Error getting part", fue);
              }
          } else {
              throw new ServletException("Not a multipart/form-data request");
          }
          return result;
      }
focal_method.class_method_signature: ApacheMultiPartManager.getPart(WebApplication webApplication,
              WebApplicationRequest request, String name)
focal_method.full_signature: @Override public Part getPart(WebApplication webApplication,
              WebApplicationRequest request, String name)
focal_method.identifier: getPart
focal_method.invocations: log isMultipartContent setupFileUpload parseRequest equals getName log
focal_method.modifiers: @Override public
focal_method.parameters: (WebApplication webApplication,
              WebApplicationRequest request, String name)
focal_method.return: Part
focal_method.signature: Part getPart(WebApplication webApplication,
              WebApplicationRequest request, String name)