public class DynamicResourceManager extends io.undertow.server.handlers.resource.FileResourceManager implements FileResolver, HtmlImportShim.ResourceLocator
| Modifier and Type | Class and Description |
|---|---|
static class |
DynamicResourceManager.MyResource |
| Constructor and Description |
|---|
DynamicResourceManager(boolean devMode,
String prefix,
boolean minify,
String resPathBase,
String... resourcePath) |
DynamicResourceManager(File base,
boolean devMode,
String prefix,
boolean minify,
String resPathBase,
String... resourcePath) |
| Modifier and Type | Method and Description |
|---|---|
io.undertow.server.handlers.resource.Resource |
getCacheEntry(String normalizedPath) |
protected io.undertow.server.handlers.resource.FileResource |
getFileResource(File file,
String path) |
io.undertow.server.handlers.resource.Resource |
getResource(String initialPath) |
Map<String,TranspilerHook> |
getTranspilerMap() |
void |
install(String path,
byte[] resolved)
a transpiler generates files which need to be mapped temporary
|
boolean |
isDevMode() |
File |
locateResource(String urlPath) |
byte[] |
resolve(File baseDir,
String name,
Set<String> alreadyProcessed)
lookup searchpath
|
byte[] |
retrieveBytes(File impFi)
invoke transpilers during prodmode inlining
|
void |
setImportShim(HtmlImportShim shim) |
void |
setPrefix(String prefix) |
void |
setTranspilerMap(Map<String,TranspilerHook> transpilerMap) |
public DynamicResourceManager(boolean devMode,
String prefix,
boolean minify,
String resPathBase,
String... resourcePath)
public void setImportShim(HtmlImportShim shim)
public void setPrefix(String prefix)
public boolean isDevMode()
public io.undertow.server.handlers.resource.Resource getCacheEntry(String normalizedPath)
public io.undertow.server.handlers.resource.Resource getResource(String initialPath)
getResource in interface io.undertow.server.handlers.resource.ResourceManagergetResource in class io.undertow.server.handlers.resource.FileResourceManagerprotected io.undertow.server.handlers.resource.FileResource getFileResource(File file, String path) throws IOException
getFileResource in class io.undertow.server.handlers.resource.FileResourceManagerIOExceptionpublic void setTranspilerMap(Map<String,TranspilerHook> transpilerMap)
public Map<String,TranspilerHook> getTranspilerMap()
public byte[] resolve(File baseDir, String name, Set<String> alreadyProcessed)
FileResolverresolve in interface FileResolverpublic void install(String path, byte[] resolved)
install in interface FileResolverpath - resolved - public File locateResource(String urlPath)
locateResource in interface HtmlImportShim.ResourceLocatorpublic byte[] retrieveBytes(File impFi)
retrieveBytes in interface HtmlImportShim.ResourceLocatorimpFi - Copyright © 2017. All rights reserved.