{
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)
{
com.rimfaxe.util.Calendar tempCal = new com.rimfaxe.util.Calendar(tempDate);
httpDate = tempCal.getHttpDate();
//httpDate = FastHttpDateFormat.getDate(tempDate);
date = tempDate.getTime();
}
else
{
com.rimfaxe.util.Calendar tempCal = new com.rimfaxe.util.Calendar();
httpDate = tempCal.getHttpDate();
//httpDate = FastHttpDateFormat.getCurrentDate();
}
weakETag = tempAttrs.getETag();
strongETag = tempAttrs.getETag(true);
length = tempAttrs.getContentLength();
}
}
catch (NamingException e)
{
// Shouldn't happen, the implementation of the DirContext