}
if (exists) {
try {
attributes = resources.getAttributes(path);
if (attributes instanceof ResourceAttributes) {
ResourceAttributes tempAttrs =
(ResourceAttributes) attributes;
Date tempDate = tempAttrs.getCreationDate();
if (tempDate != null)
creationDate = tempDate.getTime();
tempDate = tempAttrs.getLastModifiedDate();
if (tempDate != null) {
httpDate = FastHttpDateFormat.getDate(tempDate);
date = tempDate.getTime();
} else {
httpDate = FastHttpDateFormat.getCurrentDate();
}
weakETag = tempAttrs.getETag();
strongETag = tempAttrs.getETag(true);
length = tempAttrs.getContentLength();
}
} catch (NamingException e) {
// Shouldn't happen, the implementation of the DirContext
// is probably broken
exists = false;