|
Apache Tomcat 7.0.28 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.naming.resources.ResourceAttributes
org.apache.naming.resources.FileDirContext.FileResourceAttributes
protected static class FileDirContext.FileResourceAttributes
This specialized resource attribute implementation does some lazy reading (to speed up simple checks, like checking the last modified date).
| Field Summary | |
|---|---|
protected boolean |
accessed
|
protected String |
canonicalPath
|
protected File |
file
|
| Fields inherited from class org.apache.naming.resources.ResourceAttributes |
|---|
ALTERNATE_CONTENT_LENGTH, ALTERNATE_CREATION_DATE, ALTERNATE_ETAG, ALTERNATE_LAST_MODIFIED, ALTERNATE_TYPE, attributes, collection, COLLECTION_TYPE, CONTENT_LENGTH, CONTENT_TYPE, contentLength, creation, CREATION_DATE, creationDate, ETAG, format, formats, gmtZone, LAST_MODIFIED, lastModified, lastModifiedDate, lastModifiedHttp, mimeType, name, NAME, strongETag, TYPE, weakETag |
| Constructor Summary | |
|---|---|
FileDirContext.FileResourceAttributes(File file)
|
|
| Method Summary | |
|---|---|
String |
getCanonicalPath()
Get canonical path. |
long |
getContentLength()
Get content length. |
long |
getCreation()
Get creation time. |
Date |
getCreationDate()
Get creation date. |
long |
getLastModified()
Get last modified time. |
Date |
getLastModifiedDate()
Get lastModified date. |
String |
getName()
Get name. |
String |
getResourceType()
Get resource type. |
boolean |
isCollection()
Is collection. |
| Methods inherited from class org.apache.naming.resources.ResourceAttributes |
|---|
clone, get, getAll, getETag, getIDs, getLastModifiedHttp, getMimeType, isCaseIgnored, put, put, remove, setCollection, setContentLength, setCreation, setCreationDate, setETag, setLastModified, setLastModifiedDate, setLastModifiedHttp, setMimeType, setName, setResourceType, size |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected File file
protected boolean accessed
protected String canonicalPath
| Constructor Detail |
|---|
public FileDirContext.FileResourceAttributes(File file)
| Method Detail |
|---|
public boolean isCollection()
isCollection in class ResourceAttributespublic long getContentLength()
getContentLength in class ResourceAttributespublic long getCreation()
getCreation in class ResourceAttributespublic Date getCreationDate()
getCreationDate in class ResourceAttributespublic long getLastModified()
getLastModified in class ResourceAttributespublic Date getLastModifiedDate()
getLastModifiedDate in class ResourceAttributespublic String getName()
getName in class ResourceAttributespublic String getResourceType()
getResourceType in class ResourceAttributespublic String getCanonicalPath()
getCanonicalPath in class ResourceAttributes
|
Apache Tomcat 7.0.28 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||