Class ClassPathResourceManager
java.lang.Object
io.undertow.server.handlers.resource.ClassPathResourceManager
- All Implemented Interfaces:
ResourceManager,Closeable,AutoCloseable
- Author:
- Stuart Douglas
-
Field Summary
Fields inherited from interface io.undertow.server.handlers.resource.ResourceManager
EMPTY_RESOURCE_MANAGER -
Constructor Summary
ConstructorsConstructorDescriptionClassPathResourceManager(ClassLoader classLoader) ClassPathResourceManager(ClassLoader loader, Package p) ClassPathResourceManager(ClassLoader classLoader, String prefix) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()getResource(String path) Returns a resource for the given path.
-
Constructor Details
-
ClassPathResourceManager
-
ClassPathResourceManager
-
ClassPathResourceManager
-
-
Method Details
-
getResource
Description copied from interface:ResourceManagerReturns a resource for the given path. It is the responsibility of the called to make sure that the path in Canonicalised.- Specified by:
getResourcein interfaceResourceManager- Parameters:
path- The path- Returns:
- The resource representing the path, or null if no resource was found.
- Throws:
IOException
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-