Calyptus.Mvc.PathStack.GetPath C# (CSharp) Method

GetPath() public method

public GetPath ( bool rooted ) : string
rooted bool
return string
		public string GetPath(bool rooted)
		{
			StringBuilder sb = new StringBuilder();
			foreach (string path in _path)
			{
				if (sb.Length > 0)
				{
					sb.Append('/'); ;
					sb.Append(Encode(path));
				}
				else
				{
					sb.Append(Encode(path));
					if (rooted)
						sb.Append(Configuration.Config.GetExtension());
				}
			}
			if (TrailingSlash && _path.Length > 0) sb.Append('/');

			sb.Append(GetQueryString());
			return sb.ToString();
		}