test_class.file: resource/impl/src/test/java/cloud/piranha/resource/PrefixJarResourceTest.java
test_class.identifier: PrefixJarResourceTest
test_case.body: @Test
      void testGetResource() {
          PrefixJarResource resource = new PrefixJarResource();
          assertThrows(NullPointerException.class, () -> assertNull(resource.getResource(null)));
      }
test_case.class_method_signature: PrefixJarResourceTest.testGetResource()
test_case.full_signature: @Test void testGetResource()
test_case.identifier: testGetResource
test_case.invocations: assertThrows assertNull getResource
test_case.modifiers: @Test
test_case.parameters: ()
test_case.return: void
test_case.signature: void testGetResource()
focal_class.declarator: jarFile
focal_class.modifier: private
focal_class.original_string: private JarFile jarFile;
focal_class.type: JarFile
focal_class.var_name: jarFile
focal_class.declarator: prefix
focal_class.modifier: private
focal_class.original_string: private String prefix;
focal_class.type: String
focal_class.var_name: prefix
focal_class.file: resource/impl/src/main/java/cloud/piranha/resource/PrefixJarResource.java
focal_class.identifier: PrefixJarResource
focal_class.interfaces: implements Resource
focal_class.class_method_signature: PrefixJarResource.PrefixJarResource()
focal_class.full_signature: public  PrefixJarResource()
focal_class.identifier: PrefixJarResource
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.signature:  PrefixJarResource()
focal_class.class_method_signature: PrefixJarResource.PrefixJarResource(JarFile jarFile, String prefix)
focal_class.full_signature: public  PrefixJarResource(JarFile jarFile, String prefix)
focal_class.identifier: PrefixJarResource
focal_class.modifiers: public
focal_class.parameters: (JarFile jarFile, String prefix)
focal_class.signature:  PrefixJarResource(JarFile jarFile, String prefix)
focal_class.class_method_signature: PrefixJarResource.getResource(String location)
focal_class.full_signature: @Override public URL getResource(String location)
focal_class.identifier: getResource
focal_class.modifiers: @Override public
focal_class.parameters: (String location)
focal_class.return: URL
focal_class.signature: URL getResource(String location)
focal_class.class_method_signature: PrefixJarResource.getResourceAsStream(String location)
focal_class.full_signature: @Override public InputStream getResourceAsStream(String location)
focal_class.identifier: getResourceAsStream
focal_class.modifiers: @Override public
focal_class.parameters: (String location)
focal_class.return: InputStream
focal_class.signature: InputStream getResourceAsStream(String location)
focal_class.class_method_signature: PrefixJarResource.getAllLocations()
focal_class.full_signature: public Stream<String> getAllLocations()
focal_class.identifier: getAllLocations
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: Stream<String>
focal_class.signature: Stream<String> getAllLocations()
focal_class.class_method_signature: PrefixJarResource.getJarFile()
focal_class.full_signature: public JarFile getJarFile()
focal_class.identifier: getJarFile
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: JarFile
focal_class.signature: JarFile getJarFile()
focal_class.class_method_signature: PrefixJarResource.getPrefix()
focal_class.full_signature: public String getPrefix()
focal_class.identifier: getPrefix
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getPrefix()
focal_class.class_method_signature: PrefixJarResource.setJarFile(JarFile jarFile)
focal_class.full_signature: public void setJarFile(JarFile jarFile)
focal_class.identifier: setJarFile
focal_class.modifiers: public
focal_class.parameters: (JarFile jarFile)
focal_class.return: void
focal_class.signature: void setJarFile(JarFile jarFile)
focal_class.class_method_signature: PrefixJarResource.setPrefix(String prefix)
focal_class.full_signature: public void setPrefix(String prefix)
focal_class.identifier: setPrefix
focal_class.modifiers: public
focal_class.parameters: (String prefix)
focal_class.return: void
focal_class.signature: void setPrefix(String prefix)
focal_method.body: @Override
      public URL getResource(String location) {
          URL result = null;
          try {
              location = prefix + location;
              JarEntry jarEntry = jarFile.getJarEntry(location);
              if (jarEntry != null) {
                  result = new URL("jar://" + jarFile.getName() + "#!/" + location);
              }
          } catch (MalformedURLException use) {
          }
          return result;
      }
focal_method.class_method_signature: PrefixJarResource.getResource(String location)
focal_method.full_signature: @Override public URL getResource(String location)
focal_method.identifier: getResource
focal_method.invocations: getJarEntry getName
focal_method.modifiers: @Override public
focal_method.parameters: (String location)
focal_method.return: URL
focal_method.signature: URL getResource(String location)