Do you have enabled both DetailedWebdavEvent and WebdavEvent in your Domain.xml.
<event classname="org.apache.slide.webdav.event.WebdavEvent" enable="true" />
<event classname="org.apache.slide.webdav.event.DetailedWebdavEvent" enable="true"
/>
I have written a test listener, that logs all events, and now I get
all the events.
Stefan
public class LoggingWebdavListener extends WebdavAdapter {
public void acl(WebdavEvent event) throws VetoException {
System.out.println(event);
}
public void bind(WebdavEvent event) throws VetoException {
System.out.println(event);
}
public void checkin(WebdavEvent event) throws VetoException {
System.out.println(event);
}
public void checkout(WebdavEvent event) throws VetoException {
System.out.println(event);
}
public void copy(WebdavEvent event) throws VetoException {
System.out.println(event);
}
public void copyAfterCopy(DetailedWebdavEvent event) throws VetoException {
System.out.println(event);
}
public void copyAfterDelete(DetailedWebdavEvent event) throws VetoException
{
System.out.println(event);
}
public void copyBeforeCopy(DetailedWebdavEvent event) throws VetoException {
System.out.println(event);
}
public void copyBeforeDelete(DetailedWebdavEvent event) throws
VetoException {
System.out.println(event);
}
public void delete(WebdavEvent event) throws VetoException {
System.out.println(event);
}
public void deleteAfterDelete(DetailedWebdavEvent event) throws
VetoException {
System.out.println(event);
}
public void deleteBeforeDelete(DetailedWebdavEvent event) throws
VetoException {
System.out.println(event);
}
public void get(WebdavEvent event) throws VetoException {
System.out.println(event);
}
public void label(WebdavEvent event) throws VetoException {
System.out.println(event);
}
public void lock(WebdavEvent event) throws VetoException {
System.out.println(event);
}
public void mkcol(WebdavEvent event) throws VetoException {
System.out.println(event);
}
public void mkcolAfter(WebdavEvent event) throws VetoException {
System.out.println(event + " mkcolAfter");
}
public void mkworkspace(WebdavEvent event) throws VetoException {
System.out.println(event);
}
public void move(WebdavEvent event) throws VetoException {
System.out.println(event);
}
public void moveAfterCopy(DetailedWebdavEvent event) throws VetoException {
System.out.println(event);
}
public void moveAfterDelete(DetailedWebdavEvent event) throws VetoException
{
System.out.println(event);
}
public void moveBeforeCopy(DetailedWebdavEvent event) throws VetoException {
System.out.println(event);
}
public void moveBeforeDelete(DetailedWebdavEvent event) throws
VetoException {
System.out.println(event);
}
public void options(WebdavEvent event) throws VetoException {
System.out.println(event);
}
public void poll(WebdavEvent event) throws VetoException {
System.out.println(event);
}
public void propFind(WebdavEvent event) throws VetoException {
System.out.println(event);
}
public void propPatch(WebdavEvent event) throws VetoException {
System.out.println(event);
}
public void put(WebdavEvent event) throws VetoException {
System.out.println(event);
}
public void putAfter(WebdavEvent event) throws VetoException {
System.out.println(event + "putAfter");
}
public void rebind(WebdavEvent event) throws VetoException {
System.out.println(event);
}
public void report(WebdavEvent event) throws VetoException {
System.out.println(event);
}
public void search(WebdavEvent event) throws VetoException {
System.out.println(event);
}
public void subscribe(WebdavEvent event) throws VetoException {
System.out.println(event);
}
public void unbind(WebdavEvent event) throws VetoException {
System.out.println(event);
}
public void uncheckout(WebdavEvent event) throws VetoException {
System.out.println(event);
}
public void unlock(WebdavEvent event) throws VetoException {
System.out.println(event);
}
public void unsubscribe(WebdavEvent event) throws VetoException {
System.out.println(event);
}
public void update(WebdavEvent event) throws VetoException {
System.out.println(event);
}
public void versionControl(WebdavEvent event) throws VetoException {
System.out.println(event);
}
public void versionControlAfter(DetailedWebdavEvent event)
throws VetoException {
System.out.println(event);
}
public void versionControlBefore(DetailedWebdavEvent event)
throws VetoException {
System.out.println(event);
}
}
Thomas Bellembois wrote:
No problem and thank you.
But it does not seem to work yet.
Apparently those events are never thrown.
Thomas
Stefan L�tzkendorf wrote:
Sorry,
I missed a required change in WebdavEvent. Now commited.
Stefan
Thomas Bellembois wrote:
I can't catch the two new events (putAfter and mkcolAfter) (the other
methods are caught).
I have checkout and installed the entire project.
Have you modified the Slide core so that those events are thrown
after put/mkcol methods ?
Or is there something special to do in my configuration ?
Thank you.
Thomas
Thomas Bellembois wrote:
Thank you very much.
Thomas
Stefan L�tzkendorf wrote:
Ok, I added the stuff at the WebdavListener interface and checked
it in.
Thomas Bellembois wrote:
And why not mkcolBefore and putBefore too...
put() and mkcol() stands for putBefore() and mkcolBefore(). They
always exist
so I can't rename them.
Cheers, Stefan
--
Stefan L�tzkendorf -- [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]