Minor style changes
[castle.git] / MonoRail / Castle.MonoRail.Framework / IRoutingEngine.cs
blob6a559cee24475aceff65c6823e555b00052fa20f
1 // Copyright 2004-2007 Castle Project - http://www.castleproject.org/
2 //
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
6 //
7 // http://www.apache.org/licenses/LICENSE-2.0
8 //
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;
18 using Routing;
20 /// <summary>
21 /// Pendent
22 /// </summary>
23 public interface IRoutingEngine
25 /// <summary>
26 /// Pendent
27 /// </summary>
28 /// <param name="rule">The rule.</param>
29 void Add(IRoutingRule rule);
31 /// <summary>
32 /// Pendent
33 /// </summary>
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);
41 /// <summary>
42 /// Pendent
43 /// </summary>
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);