[Mono-bugs] [Bug 331250] New: Replace System.Web.Util.UrlUtils by System.Web. VirtualPathUtility

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Fri Oct 5 13:04:37 EDT 2007


https://bugzilla.novell.com/show_bug.cgi?id=331250

           Summary: Replace System.Web.Util.UrlUtils by
                    System.Web.VirtualPathUtility
           Product: Mono: Class Libraries
           Version: 1.2
          Platform: All
        OS/Version: Other
            Status: NEW
          Severity: Enhancement
          Priority: P5 - None
         Component: Sys.Web
        AssignedTo: mhabersack at novell.com
        ReportedBy: juraj at hotfeet.ch
         QAContact: mono-bugs at ximian.com
          Found By: ---


Make all classes in System.Web use System.Web.VirtualPathUtility instead of
System.Web.Util.UrlUtils. They offer almost the same functionality:

public static class VirtualPathUtility {
        public static string AppendTrailingSlash (string virtualPath);
        private static string Canonize (string path);
        public static string Combine (string basePath, string relativePath);
        public static string GetDirectory (string virtualPath);
        internal static string GetDirectory (string virtualPath, bool
normalize);
        public static string GetExtension (string virtualPath);
        public static string GetFileName (string virtualPath);
        public static bool IsAbsolute (string virtualPath);
        public static bool IsAppRelative (string virtualPath);
        internal static bool IsRooted (string virtualPath);
        public static string MakeRelative (string fromPath, string toPath);
        private static string Normalize (string path);
        public static string RemoveTrailingSlash (string virtualPath);
        public static string ToAbsolute (string virtualPath);
        internal static string ToAbsolute (string virtualPath, bool normalize);
        public static string ToAbsolute (string virtualPath, string
applicationPath);
        public static string ToAbsolute (string virtualPath, string
applicationPath, bool normalize);
        private static string ToAbsoluteInternal (string virtualPath);
        public static string ToAppRelative (string virtualPath);
        public static string ToAppRelative (string virtualPath, string
applicationPath);
        private static char [] path_sep;
}

internal class UrlUtils {
        public UrlUtils ();
        internal static string Canonic (string path);
        public static string Combine (string basePath, string relPath);
        internal static string GetDirectory (string url);
        internal static string GetFile (string url);
        internal static string GetSessionId (string path);
        internal static string InsertSessionId (string id, string path);
        internal static bool IsRelativeUrl (string path);
        internal static bool IsRooted (string path);
        internal static string RemoveDoubleSlashes (string input);
        internal static string RemoveSessionId (string base_path, string
file_path);
        public static string ResolvePhysicalPathFromAppAbsolute (string path);
        public static string ResolveVirtualPathFromAppAbsolute (string path);
        private static char [] path_sep;
}


-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.


More information about the mono-bugs mailing list