Add WebAppContext.getResourceFactory()

This commit is contained in:
Joakim Erdfelt 2022-08-04 17:22:26 -05:00
parent 58eea0541c
commit 8877f52dd7
No known key found for this signature in database
GPG Key ID: 2D0E1FB8FE4B68B4
2 changed files with 10 additions and 0 deletions

View File

@ -369,6 +369,11 @@ public class WebAppContext extends ServletContextHandler implements WebAppClassL
((WebAppClassLoader)classLoader).setName(name);
}
public ResourceFactory getResourceFactory()
{
return ResourceFactory.of(this);
}
@Override
public Resource getResource(String pathInContext) throws MalformedURLException
{

View File

@ -378,6 +378,11 @@ public class WebAppContext extends ServletContextHandler implements WebAppClassL
((WebAppClassLoader)classLoader).setName(name);
}
public ResourceFactory getResourceFactory()
{
return ResourceFactory.of(this);
}
@Override
public Resource getResource(String pathInContext) throws MalformedURLException
{