public interface FileResolver extends Closeable
In this case we want the application to access the resource from the classpath as if it was on the file system.
We can do this by looking for the file on the classpath, and if found, copying it to a temporary cache directory on disk and serving it from there.
There is one cache dir per Vert.x instance which is deleted on Vert.x shutdown.
|Modifier and Type||Method and Description|
Close this file resolver, this is a blocking operation.
Resolve the file for the specified
File resolveFile(String fileName)
fileName. This method should never return
null, it can return a file that does not exist.
fileName- the name to resolve
void close() throws IOException
Copyright © 2022 Eclipse. All rights reserved.