boolean resourceExists = false;
boolean resourceIsCollection = false;
SearchLanguage[] languages =
token.getSearchHelper().getSupportedLanguages ();
ResourceKind resourceKind = null;
try {
NodeRevisionDescriptors revisionDescriptors =
content.retrieve(slideToken, resourceUri);
NodeRevisionDescriptor revisionDescriptor =
content.retrieve(slideToken, revisionDescriptors);
resourceKind = AbstractResourceKind.determineResourceKind(token, revisionDescriptors, revisionDescriptor);
resourceExists = true;
if( WebdavUtils.isCollection(revisionDescriptor) )
resourceIsCollection = true;
} catch (SlideException e) {
if (resourceUri.equals("/")) {
resourceExists = true;
resourceIsCollection = true;
} else {
resourceExists = false;
}
}
// build allow-header
StringBuffer methodsAllowed = new StringBuffer();
if( resourceKind != null ) {
Iterator methodIterator = resourceKind.getSupportedMethods().iterator();
while (methodIterator.hasNext()) {
methodsAllowed.append((String)methodIterator.next());
methodsAllowed.append(", ");
}
if (methodsAllowed.length() > 1) {