# File lib/mongrel.rb, line 658
658:     def register(uri, handler, in_front=false)
659:       script_name, path_info, handlers = @classifier.resolve(uri)
660: 
661:       if not handlers
662:         @classifier.register(uri, [handler])
663:       else
664:         if path_info.length == 0 or (script_name == Const::SLASH and path_info == Const::SLASH)
665:           if in_front
666:             handlers.unshift(handler)
667:           else
668:             handlers << handler
669:           end
670:         else
671:           @classifier.register(uri, [handler])
672:         end
673:       end
674: 
675:       handler.listener = self
676:     end