public class ServletResource extends Object implements io.undertow.server.handlers.resource.Resource
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() |
Date |
getLastModified() |
String |
getLastModifiedString() |
String |
getName() |
String |
getPath() |
File |
getResourceManagerRoot() |
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 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
Copyright © 2015 JBoss by Red Hat. All rights reserved.