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

new()

### Public Instance methods

register(uri, handler)

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(request_uri)

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

unregister(uri)

Unregister a particular URI and its handler.

uris()

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

[Validate]