public class DirectoryResource.FileResource extends Object
Constructor and Description |
---|
FileResource(File f,
URL url)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
URL |
getDelete() |
URL |
getDownload() |
Date |
getLastModified() |
String |
getName() |
long |
getSize() |
String |
getType() |
URL |
getUrl() |
URL |
getView() |
public FileResource(File f, URL url)
f
- The file.url
- The URL of the file resource.public long getSize()
@Swap(value=DateSwap.ISO8601DTP.class) public Date getLastModified()
public URL getView() throws Exception
Exception
- If access is not allowed.public URL getDownload() throws Exception
Exception
- If access is not allowed.Copyright © 2018 Apache. All rights reserved.