|
Apache Tomcat 6.0.45 | ||||||||
| 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 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 java.lang.String |
canonicalPath
|
protected java.io.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_LANGUAGE, CONTENT_LENGTH, CONTENT_TYPE, contentLength, creation, CREATION_DATE, creationDate, ETAG, format, formats, gmtZone, LAST_MODIFIED, lastModified, lastModifiedDate, lastModifiedHttp, mimeType, name, NAME, SOURCE, strongETag, TYPE, weakETag |
| Constructor Summary | |
|---|---|
FileDirContext.FileResourceAttributes(java.io.File file)
|
|
| Method Summary | |
|---|---|
java.lang.String |
getCanonicalPath()
Get canonical path. |
long |
getContentLength()
Get content length. |
long |
getCreation()
Get creation time. |
java.util.Date |
getCreationDate()
Get creation date. |
long |
getLastModified()
Get last modified time. |
java.util.Date |
getLastModifiedDate()
Get lastModified date. |
java.lang.String |
getName()
Get name. |
java.lang.String |
getResourceType()
Get resource type. |
boolean |
isCollection()
Is collection. |
| Methods inherited from class org.apache.naming.resources.ResourceAttributes |
|---|
clone, get, getAll, getETag, getETag, getIDs, getLastModifiedHttp, getMimeType, isCaseIgnored, put, put, remove, setCollection, setContentLength, setCreation, setCreationDate, setETag, setLastModified, 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 java.io.File file
protected boolean accessed
protected java.lang.String canonicalPath
| Constructor Detail |
|---|
public FileDirContext.FileResourceAttributes(java.io.File file)
| Method Detail |
|---|
public boolean isCollection()
isCollection in class ResourceAttributespublic long getContentLength()
getContentLength in class ResourceAttributespublic long getCreation()
getCreation in class ResourceAttributespublic java.util.Date getCreationDate()
getCreationDate in class ResourceAttributespublic long getLastModified()
getLastModified in class ResourceAttributespublic java.util.Date getLastModifiedDate()
getLastModifiedDate in class ResourceAttributespublic java.lang.String getName()
getName in class ResourceAttributespublic java.lang.String getResourceType()
getResourceType in class ResourceAttributespublic java.lang.String getCanonicalPath()
getCanonicalPath in class ResourceAttributes
|
Apache Tomcat 6.0.45 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||