capotej/finatra — pull request #30 by mairbek (2012-11-15 00:03:00+00:00)
Title: Levelage finalge filters for routing and exception handling

In order to support custom exception handling and static files configuration I'd like to suggest following change.

The idea is to present controller as a finagle filter. Filter is an aggregation of `static files serving filter` andThen `exception handling filters` andThen `routing filters`.

Controller API will allow to

1. Configure routing. Current api plus low level matching.
2. Configure exception handling.
3. Configure static file serving. Enable/disable for now. Public folder configuration in future.

I hacked up a prototype. What do you think?