> Glad you are ready to code this! ;)

My time is somewhat limited, though ;-)

> Basically, you need to create an org.restlet.Filter subclass 
>that will contains some throttling configuration properties.

Here's a first quick sketch (only limiting the amount of running requests): 
<http://pastebin.com/m12342784

It throws 503 status codes when too many requests are running at the same time.

This only works, when after each and every request the filter's afterHandle is 
called. Is there any situation, where beforeHandle of a request is issued, but 
the afterHandle is skipped (except for the case where beforeHandle does not 
return CONTINUE, obviously)?

------------------------------------------------------
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=1106768

Reply via email to