1 // Copyright 2004-2007 Castle Project - http://www.castleproject.org/
3 // Licensed under the Apache License, Version 2.0 (the "License");
4 // you may not use this file except in compliance with the License.
5 // You may obtain a copy of the License at
7 // http://www.apache.org/licenses/LICENSE-2.0
9 // Unless required by applicable law or agreed to in writing, software
10 // distributed under the License is distributed on an "AS IS" BASIS,
11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 // See the License for the specific language governing permissions and
13 // limitations under the License.
15 namespace Castle
.MonoRail
.Framework
17 using System
.Collections
;
23 public interface IRoutingEngine
28 /// <param name="rule">The rule.</param>
29 void Add(IRoutingRule rule
);
34 /// <param name="routeName">Name of the route.</param>
35 /// <param name="hostname">The hostname.</param>
36 /// <param name="virtualPath">The virtual path.</param>
37 /// <param name="parameters">The parameters.</param>
38 /// <returns></returns>
39 string CreateUrl(string routeName
, string hostname
, string virtualPath
, IDictionary parameters
);
44 /// <param name="hostname">The hostname.</param>
45 /// <param name="virtualPath">The virtual path.</param>
46 /// <param name="url">The URL.</param>
47 /// <returns></returns>
48 RouteMatch
FindMatch(string hostname
, string virtualPath
, string url
);