protected static class FileDirContext.FileResourceAttributes extends ResourceAttributes
Modifier and Type | Field and Description |
---|---|
protected boolean |
accessed |
protected java.lang.String |
canonicalPath |
protected java.io.File |
file |
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 and Description |
---|
FileDirContext.FileResourceAttributes(java.io.File file) |
Modifier and Type | Method and Description |
---|---|
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.
|
clone, get, getAll, getETag, getIDs, getLastModifiedHttp, getMimeType, isCaseIgnored, put, put, remove, setCollection, setContentLength, setCreation, setCreationDate, setETag, setLastModified, setLastModifiedDate, setLastModifiedHttp, setMimeType, setName, setResourceType, size
protected java.io.File file
protected boolean accessed
protected java.lang.String canonicalPath
public FileDirContext.FileResourceAttributes(java.io.File file)
public boolean isCollection()
isCollection
in class ResourceAttributes
public long getContentLength()
getContentLength
in class ResourceAttributes
public long getCreation()
getCreation
in class ResourceAttributes
public java.util.Date getCreationDate()
getCreationDate
in class ResourceAttributes
public long getLastModified()
getLastModified
in class ResourceAttributes
public java.util.Date getLastModifiedDate()
getLastModifiedDate
in class ResourceAttributes
public java.lang.String getName()
getName
in class ResourceAttributes
public java.lang.String getResourceType()
getResourceType
in class ResourceAttributes
public java.lang.String getCanonicalPath()
getCanonicalPath
in class ResourceAttributes
Copyright © 2000-2015 Apache Software Foundation. All Rights Reserved.