org.apache.naming.resources
Class FileDirContext.FileResourceAttributes
- FileDirContext
- Attributes
protected class FileDirContext.FileResourceAttributes
This specialized resource attribute implementation does some lazy
reading (to speed up simple checks, like checking the last modified
date).
ALTERNATE_CONTENT_LENGTH, ALTERNATE_CREATION_DATE, ALTERNATE_LAST_MODIFIED, ALTERNATE_TYPE, COLLECTION_TYPE, CONTENT_LANGUAGE, CONTENT_LENGTH, CONTENT_TYPE, CREATION_DATE, ETAG, LAST_MODIFIED, NAME, SOURCE, TYPE, attributes, collection, contentLength, creation, creationDate, format, formats, lastModified, lastModifiedDate, name, strongETag, weakETag |
clone, get, getAll, getContentLength, getCreation, getCreationDate, getETag, getETag, getIDs, getLastModified, getLastModifiedDate, getName, getResourceType, isCaseIgnored, isCollection, put, put, remove, setCollection, setContentLength, setCreation, setCreationDate, setETag, setLastModified, setLastModified, setLastModifiedDate, setName, setResourceType, size |
accessed
protected boolean accessed
FileResourceAttributes
public FileResourceAttributes(File file)
getContentLength
public long getContentLength()
Get content length.
- getContentLength in interface ResourceAttributes
- content length value
getCreation
public long getCreation()
Get creation time.
- getCreation in interface ResourceAttributes
- creation time value
getCreationDate
public Date getCreationDate()
Get creation date.
- getCreationDate in interface ResourceAttributes
- Creation date value
getLastModified
public long getLastModified()
Get last modified time.
- getLastModified in interface ResourceAttributes
- lastModified time value
getLastModifiedDate
public Date getLastModifiedDate()
Get lastModified date.
- getLastModifiedDate in interface ResourceAttributes
- LastModified date value
getName
public String getName()
Get name.
- getName in interface ResourceAttributes
- Name value
getResourceType
public String getResourceType()
Get resource type.
- getResourceType in interface ResourceAttributes
- String resource type
isCollection
public boolean isCollection()
Is collection.
- isCollection in interface ResourceAttributes
Copyright B) 2000-2003 Apache Software Foundation. All Rights Reserved.