# File lib/mongrel.rb, line 721
721:     def register(uri, handler, in_front=false)
722:       script_name, path_info, handlers = @classifier.resolve(uri)
723: 
724:       if not handlers
725:         @classifier.register(uri, [handler])
726:       else
727:         if path_info.length == 0 or (script_name == Const::SLASH and path_info == Const::SLASH)
728:           if in_front
729:             handlers.unshift(handler)
730:           else
731:             handlers << handler
732:           end
733:         else
734:           @classifier.register(uri, [handler])
735:         end
736:       end
737: 
738:       handler.listener = self
739:     end