TokenizeUrl() public méthode

Tokenizes the URL.
public TokenizeUrl ( string rawUrl, Uri uri, bool isLocal, string appVirtualDir ) : System.UrlInfo
rawUrl string The raw URL.
uri System.Uri The URI.
isLocal bool if set to true [is local].
appVirtualDir string Virtual directory
Résultat System.UrlInfo
		public DefaultUrlBuilderTestCase()
		{
			DefaultUrlTokenizer tokenizer = new DefaultUrlTokenizer();

			noAreaUrl = tokenizer.TokenizeUrl("/home/index.rails", new Uri("http://localhost/home/index.rails"), true, "/");
			areaUrl = tokenizer.TokenizeUrl("/area/home/index.rails", new Uri("http://localhost/area/home/index.rails"), true, "/");
			withSubDomain = tokenizer.TokenizeUrl("/app/home/index.rails", new Uri("http://sub.domain.com/app/home/index.rails"), false, "/app");
			diffPort = tokenizer.TokenizeUrl("/app/home/index.rails", new Uri("http://localhost:81/app/home/index.rails"), false, "/app");
		}
		public void ShouldWorkForSingleLetterAppVirtualDir()
		{
			var tokenizer = new DefaultUrlTokenizer();
			var urlinfo = tokenizer.TokenizeUrl("/v/area/controller/action.castle", null,
								  new Uri("http://www.castleproject.org/v/area/controller/action.castle"), true, "/v");

			var parameters = new UrlBuilderParameters();

			Assert.AreEqual("/v/area/controller/action.castle", urlBuilder.BuildUrl(urlinfo, parameters));
		}
		public void UseAbsPathWithWWW()
		{
			var tokenizer = new DefaultUrlTokenizer();
			var urlinfo = tokenizer.TokenizeUrl("/area/home/index.castle", null,
								  new Uri("http://www.castleproject.org"), true, string.Empty);


			var parameters = new UrlBuilderParameters("test", "action") { CreateAbsolutePath = true };

			Assert.AreEqual("http://www.castleproject.org/area/test/action.castle",
				urlBuilder.BuildUrl(urlinfo, parameters));
		}