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 |
|---|---|
| public void | |
| public File | Returns: a file resolvedthe name to resolve fileName)Resolve the file for the specified |
| close | back to summary |
|---|---|
| public void close() throws IOException Redeclares java. Close this file resolver, this is a blocking operation.
| |
| resolveFile | back to summary |
|---|---|
| public File resolveFile(String fileName) Resolve the file for the specified | |