Thomas Bellembois wrote:

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

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.

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]



Reply via email to