| Constructor and Description |
|---|
CachedResource(CachingResourceManager cachingResourceManager,
Resource underlyingResource,
String path) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
checkStillValid() |
String |
getCacheKey() |
Long |
getContentLength() |
String |
getContentType(MimeMappings mimeMappings)
Return the resources content type.
|
ETag |
getETag() |
File |
getFile() |
Date |
getLastModified() |
String |
getLastModifiedString() |
String |
getName() |
String |
getPath() |
File |
getResourceManagerRoot()
Returns the resource manager root.
|
URL |
getUrl() |
void |
invalidate() |
boolean |
isDirectory() |
List<Resource> |
list() |
void |
serve(Sender sender,
HttpServerExchange exchange,
IoCallback completionCallback)
Serve the resource, and call the provided callback when complete.
|
public CachedResource(CachingResourceManager cachingResourceManager, Resource underlyingResource, String path)
public String getPath()
public Date getLastModified()
getLastModified in interface Resourcepublic String getLastModifiedString()
getLastModifiedString in interface Resourcepublic ETag getETag()
public String getName()
public boolean isDirectory()
isDirectory in interface Resourcetrue if this resource represents a directorypublic String getContentType(MimeMappings mimeMappings)
ResourcegetContentType in interface Resourcepublic void invalidate()
public boolean checkStillValid()
public void serve(Sender sender, HttpServerExchange exchange, IoCallback completionCallback)
Resourcepublic Long getContentLength()
getContentLength in interface Resourcepublic String getCacheKey()
getCacheKey in interface Resourcepublic File getFile()
public File getResourceManagerRoot()
ResourcegetResourceManagerRoot in interface ResourceCopyright © 2013 JBoss by Red Hat. All Rights Reserved.