response.close();
}
protected void printItem(IDavContext ctxt, XMLStreamWriter response, IDavItem di) throws IOException, MethodException, XMLStreamException {
DAVItemSerializer dis = new DAVItemSerializer();
// Item
response.writeStartElement("DAV:", "response");
response.writeStartElement("DAV:", "href");
String href = this.getBaseUrl();
// If we're looking at the root item, don't ask it for its' name, because it will
// be 'null'
if (!di.equals(getRepo().getRepositoryRoot(getDavContext()))) href += di.getPath(ctxt);
// else
// href += "/";
// The following is to keep slide happy. I think it's wrong (looking at the RFC examples
// seems to confirm this), but - hey ho!
URL url = new URL(href);
href = url.getPath();
s_logger.info("PATH href " + href);
response.writeCharacters(href);
response.writeEndElement();
if (m_properties != null)
dis.generateNamedProperties(ctxt, di, response, m_properties);
else
dis.generateProperties(ctxt, di, response, false);
response.writeEndElement();
// Item
}