public class VirtualFileResource extends Object implements io.undertow.server.handlers.resource.Resource
| Constructor and Description |
|---|
VirtualFileResource(File resourceManagerRoot,
org.jboss.vfs.VirtualFile file,
String path) |
| Modifier and Type | Method and Description |
|---|---|
String |
getCacheKey() |
Long |
getContentLength() |
String |
getContentType(io.undertow.util.MimeMappings mimeMappings) |
io.undertow.util.ETag |
getETag() |
File |
getFile() |
Path |
getFilePath() |
Date |
getLastModified() |
String |
getLastModifiedString() |
String |
getName() |
String |
getPath() |
File |
getResourceManagerRoot() |
Path |
getResourceManagerRootPath() |
URL |
getUrl() |
boolean |
isDirectory() |
List<io.undertow.server.handlers.resource.Resource> |
list() |
void |
serve(io.undertow.io.Sender sender,
io.undertow.server.HttpServerExchange exchange,
io.undertow.io.IoCallback callback) |
public String getPath()
getPath in interface io.undertow.server.handlers.resource.Resourcepublic Date getLastModified()
getLastModified in interface io.undertow.server.handlers.resource.Resourcepublic String getLastModifiedString()
getLastModifiedString in interface io.undertow.server.handlers.resource.Resourcepublic io.undertow.util.ETag getETag()
getETag in interface io.undertow.server.handlers.resource.Resourcepublic String getName()
getName in interface io.undertow.server.handlers.resource.Resourcepublic boolean isDirectory()
isDirectory in interface io.undertow.server.handlers.resource.Resourcepublic List<io.undertow.server.handlers.resource.Resource> list()
list in interface io.undertow.server.handlers.resource.Resourcepublic String getContentType(io.undertow.util.MimeMappings mimeMappings)
getContentType in interface io.undertow.server.handlers.resource.Resourcepublic void serve(io.undertow.io.Sender sender,
io.undertow.server.HttpServerExchange exchange,
io.undertow.io.IoCallback callback)
serve in interface io.undertow.server.handlers.resource.Resourcepublic Long getContentLength()
getContentLength in interface io.undertow.server.handlers.resource.Resourcepublic String getCacheKey()
getCacheKey in interface io.undertow.server.handlers.resource.Resourcepublic File getFile()
getFile in interface io.undertow.server.handlers.resource.Resourcepublic File getResourceManagerRoot()
getResourceManagerRoot in interface io.undertow.server.handlers.resource.Resourcepublic URL getUrl()
getUrl in interface io.undertow.server.handlers.resource.Resourcepublic Path getResourceManagerRootPath()
getResourceManagerRootPath in interface io.undertow.server.handlers.resource.Resourcepublic Path getFilePath()
getFilePath in interface io.undertow.server.handlers.resource.ResourceCopyright © 2018 JBoss by Red Hat. All rights reserved.