| Constructor and Description |
|---|
URLResource(URL url,
URLConnection connection,
String path) |
| Modifier and Type | Method and Description |
|---|---|
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() |
boolean |
isDirectory() |
List<Resource> |
list() |
void |
serve(Sender sender,
HttpServerExchange exchange,
IoCallback completionCallback)
Serve the resource, and call the provided callback when complete.
|
public URLResource(URL url, URLConnection connection, 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 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.