C# Class Encog.Util.HTTP.URLUtility

URLUtility: THis class contains several useful methods for dealing with URL's.
Show file Open project: encog/encog-silverlight-core

Public Methods

Method Description
ConstructURL ( Uri baseURL, String url, bool stripFragment ) : Uri

Construct a URL from a string.

ContainsInvalidURLCharacters ( String url ) : bool

Does the URL contain invalid characters?

ConvertFilename ( String basePath, Uri url, bool mkdir ) : String

Convert a filename for local storage. Also create the directory tree.

Method Details

ConstructURL() public static method

Construct a URL from a string.
public static ConstructURL ( Uri baseURL, String url, bool stripFragment ) : Uri
baseURL System.Uri The page that the URL was found on.
url String The URL found.
stripFragment bool Should fragments be stripped. Fragments are the part of a URL after the # sign. They do not specify actual pages, but rather part of a page. As a result, they are usually not needed by a spider or bot.
return System.Uri

ContainsInvalidURLCharacters() public static method

Does the URL contain invalid characters?
public static ContainsInvalidURLCharacters ( String url ) : bool
url String The URL
return bool

ConvertFilename() public static method

Convert a filename for local storage. Also create the directory tree.
public static ConvertFilename ( String basePath, Uri url, bool mkdir ) : String
basePath String The local path that forms the base of the /// downloaded web tree.
url System.Uri The URL path.
mkdir bool True if a directory structure should be created /// to support this file. Directories will only be /// created, if needed.
return String