public class ServletResource extends Object implements io.undertow.server.handlers.resource.Resource, io.undertow.server.handlers.resource.RangeAwareResource
Constructor and Description |
---|
ServletResource(ServletResourceManager resourceManager,
io.undertow.server.handlers.resource.Resource underlying) |
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() |
boolean |
isRangeSupported() |
List<io.undertow.server.handlers.resource.Resource> |
list() |
void |
serve(io.undertow.io.Sender sender,
io.undertow.server.HttpServerExchange exchange,
io.undertow.io.IoCallback completionCallback) |
void |
serveRange(io.undertow.io.Sender sender,
io.undertow.server.HttpServerExchange exchange,
long start,
long end,
io.undertow.io.IoCallback completionCallback) |
public ServletResource(ServletResourceManager resourceManager, io.undertow.server.handlers.resource.Resource underlying)
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 completionCallback)
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
public void serveRange(io.undertow.io.Sender sender, io.undertow.server.HttpServerExchange exchange, long start, long end, io.undertow.io.IoCallback completionCallback)
serveRange
in interface io.undertow.server.handlers.resource.RangeAwareResource
public boolean isRangeSupported()
isRangeSupported
in interface io.undertow.server.handlers.resource.RangeAwareResource
Copyright © 2017 JBoss by Red Hat. All rights reserved.