Thursday, May 31, 2007
Filter/Dispatcher pattern for URI handling in .Net
I put together an interesting component of an application recently. It didn't get used in the end, but I liked it none the less. Using the HttpModules in the web.config I was able to get it to act as a filter pattern, intercepting all web requests through the web server. Then using a custom configuration I was able to implement a dispatcher pattern to configurable classes. This resulted in a web site that could catch any requests and process regardless if that page actually existed. It's a nice way to think about implementing a REST friendly web site.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment