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.Resource
public Date getLastModified()
getLastModified
in interface io.undertow.server.handlers.resource.Resource
public String getLastModifiedString()
getLastModifiedString
in interface io.undertow.server.handlers.resource.Resource
public io.undertow.util.ETag getETag()
getETag
in interface io.undertow.server.handlers.resource.Resource
public String getName()
getName
in interface io.undertow.server.handlers.resource.Resource
public boolean isDirectory()
isDirectory
in interface io.undertow.server.handlers.resource.Resource
public List<io.undertow.server.handlers.resource.Resource> list()
list
in interface io.undertow.server.handlers.resource.Resource
public String getContentType(io.undertow.util.MimeMappings mimeMappings)
getContentType
in interface io.undertow.server.handlers.resource.Resource
public 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.Resource
public Long getContentLength()
getContentLength
in interface io.undertow.server.handlers.resource.Resource
public String getCacheKey()
getCacheKey
in interface io.undertow.server.handlers.resource.Resource
public File getFile()
getFile
in interface io.undertow.server.handlers.resource.Resource
public File getResourceManagerRoot()
getResourceManagerRoot
in interface io.undertow.server.handlers.resource.Resource
public URL getUrl()
getUrl
in interface io.undertow.server.handlers.resource.Resource
public Path getResourceManagerRootPath()
getResourceManagerRootPath
in interface io.undertow.server.handlers.resource.Resource
public Path getFilePath()
getFilePath
in interface io.undertow.server.handlers.resource.Resource
Copyright © 2018 JBoss by Red Hat. All rights reserved.