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) |
long |
getLastModified() |
Date |
getLastModifiedDate() |
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,
Map<String,Object> alreadyProcessed)
lookup searchpath
|
File |
resolveFile(File baseDir,
String name) |
String |
resolveUniquePath(File file) |
byte[] |
retrieveBytes(File impFi)
invoke transpilers during prodmode inlining
|
void |
setImportShim(HtmlImportShim shim) |
void |
setPrefix(String prefix) |
void |
setTranspilerMap(Map<String,TranspilerHook> transpilerMap) |
getBase, setBasepublic 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.PathResourceManagerprotected io.undertow.server.handlers.resource.FileResource getFileResource(File file, String path) throws IOException
IOExceptionpublic void setTranspilerMap(Map<String,TranspilerHook> transpilerMap)
public Map<String,TranspilerHook> getTranspilerMap()
public byte[] resolve(File baseDir, String name, Map<String,Object> alreadyProcessed)
FileResolverresolve in interface FileResolverpublic File resolveFile(File baseDir, String name)
resolveFile in interface FileResolverpublic void install(String path, byte[] resolved)
install in interface FileResolverpath - resolved - public String resolveUniquePath(File file)
resolveUniquePath in interface FileResolverpublic File locateResource(String urlPath)
locateResource in interface HtmlImportShim.ResourceLocatorpublic byte[] retrieveBytes(File impFi)
retrieveBytes in interface HtmlImportShim.ResourceLocatorimpFi - public long getLastModified()
public Date getLastModifiedDate()
Copyright © 2017. All rights reserved.