public void addResource(VirtualDirectoryResource resource, ServerResourcePath path, Resource childResource) { resource.addResource(path.toString(), childResource); }
public Resource getResource(Resource resource, ServerResourcePath path) { try { return resource.addPath(path.toString()); } catch (MalformedURLException e) { throw new TestException(e.getMessage(), e); } catch (IOException e) { throw new TestException(e.getMessage(), e); } }