sendError( statusCode, e );
throw new WebdavException( statusCode );
}
Vector propertiesParser = null;
PropertyRetrieverImpl propertyRetriever = new PropertyRetrieverImpl(token, lightSToken, getConfig());
switch (propFindType) {
case FIND_ALL_PROP :
case FIND_BY_PROPERTY :
try {
List propstatList= propertyRetriever.getPropertiesOfObject(requestedProperties, revisionDescriptors, revisionDescriptor, req.getContextPath(), req.getServletPath(), extendedAllprop);
Iterator iterator = propstatList.iterator();
while (iterator.hasNext()) {
responseElement.addContent((Element)iterator.next());
}
} catch (ServiceAccessException e) {
int statusCode = WebdavStatus.SC_FORBIDDEN;
sendError( statusCode, e );
throw new WebdavException( statusCode );
} catch (Exception e) {
int statusCode = getErrorCode( e );
sendError( statusCode, e );
throw new WebdavException( statusCode );
}
break;
case FIND_PROPERTY_NAMES :
try {
status = new String("HTTP/1.1 " + WebdavStatus.SC_OK
+ " " + WebdavStatus.getStatusText
(WebdavStatus.SC_OK));
Element propstatElement = new Element(E_PROPSTAT, DNSP);
Element propElement = new Element(E_PROP, DNSP);
RequestedProperties propnames =
propertyRetriever.getAllPropertyNames(object.getUri(), true);
Iterator iterator = propnames.getRequestedProperties();
while (iterator.hasNext()) {
RequestedProperty p = (RequestedProperty)iterator.next();
Namespace nsp = DNSP.getURI().equals(p.getNamespace())
? DNSP