Thomas Bellembois wrote:

Ok, I will do that. Before starting my development, I just wanted to study all the different possibilities and as somedy started to develop Slide quotas based on Interceptors, I thought it could be a way. But I will follow your advice.

This was because in 2001 event in slide does not exists. There were only Interceptors before ... now, there are events and extractor.


Sorry for my basic questions, I am not very aware of event and interceptors yet. ;-)

no problem with that for me.

Thank you very much for your help. (Thanks to Stephan too)

Thomas

Honor� David wrote:

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]







---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to