Class Mongrel::URIClassifier
In: lib/mongrel/uri_classifier.rb
Parent: Object

Methods

new   register   resolve   unregister   uris  

Classes and Modules

Class Mongrel::URIClassifier::RegistrationError
Class Mongrel::URIClassifier::UsageError

Attributes

handler_map  [R] 

Public Class methods

Public Instance methods

Register a handler object at a particular URI. The handler can be whatever you want, including an array. It‘s up to you what to do with it.

Registering a handler is not necessarily threadsafe, so be careful if you go mucking around once the server is running.

Resolve a request URI by finding the best partial match in the registered handler URIs.

Unregister a particular URI and its handler.

Returns the URIs that have been registered with this classifier so far.

[Validate]