Sorry for my basic questions, I am not very aware of event and interceptors yet. ;-)
Thank you very much for your help. (Thanks to Stephan too)
Thomas
Honor� David wrote:
Thomas Bellembois wrote:
One's again look at the events system. Events are pretty much flexible than Interceptors and this is not very difficult to convert an ContentInterceptor to an EventListener.Hello,
I have read on the mailing list that in 2001 somebody started to develop Slide quota based on Interceptors, but apparently that development was not completed (do you know why ?).
Is there somewhere a sample of code about this work ?
A technical question :
A class "InsufficientStorageException" exists but is never used. To be compliant with the "draft-ietf-webdav-quota-06" I would need to throw this kind of exception in some classes in my Interceptor. Is there a reason for this absence ? Would it be possible to modify the interface "ContentInterceptor" to include it ?
Thank you.
Thomas
Listener can throw a VetoException (if vetoable event) ... then just do something like that
throw (VetoException) new VetoException("no more disk space").initCause(new InsufficientStorageException(uri, user, "quota exceded"));
Have a nice day.
Honor� David.
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
-- BELLEMBOIS Thomas CRI, Universit� de Rennes 1 Campus de beaulieu Avenue du G�n�ral Leclerc 35042 RENNES Cedex T�l.: 02.23.23.69.60 Mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
