ClintHeyer.Httpd
Class URI

Uniform Resource Identifier

Field Summary
string extension
string filename
string fragment
string fullPath
System.Collections.Specialized.NameValueCollection getQuery
bool isAbsolute
string netLoc
string original
string path
string port
string query
string safePath
ClintHeyer.Httpd.URI.Schemes scheme
string userDetails

Constructor Summary
URI(string original, bool isAbsolute, ClintHeyer.Httpd.URI.Schemes scheme, string netLoc, string fullPath, string path, string port, string filename, string query, string userDetails, string fragment)

Property Summary
string Extension
         Gets the extension (where available)
string Filename
         Gets or sets the filename. Can be changed by a context to handle default '/' type URIs
string Fragment
         Gets any fragment
string FullPath
         Gets the full path
string FullURI
         Gets the full Uri
System.Collections.Specialized.NameValueCollection GetVariables
bool IsAbsolute
         Gets whether the Uri points to an absolute resource
string Location
         Gets the location
string Path
         Gets the path
string Port
         Gets the port
string Query
         Gets any raw query information
string SafePath
         Gets or sets the 'safe' path for the Uri, which stripped of filesystem escape characters
ClintHeyer.Httpd.URI.Schemes Scheme
         Gets the scheme
string UserDetails

Method Summary
bool IsLegal(string p)
         Checks a string for illegal characters
ClintHeyer.Httpd.URI Parse(string p)
         Parses the given Uri string
ClintHeyer.Httpd.URI Parse(string p, string userScheme)
void ProcessQuery()
string ToString()
         Gets a string representation of uri

Methods inherited from class System.Object
Equals, Finalize, GetHashCode, GetType, MemberwiseClone


Field Detail

extension

private string extension


filename

private string filename


fragment

private string fragment


fullPath

private string fullPath


getQuery

private System.Collections.Specialized.NameValueCollection getQuery


isAbsolute

private bool isAbsolute


netLoc

private string netLoc


original

private string original


path

private string path


port

private string port


query

private string query


safePath

private string safePath


scheme

private ClintHeyer.Httpd.URI.Schemes scheme


userDetails

private string userDetails

Constructor Detail

URI

private URI(string original,
            bool isAbsolute,
            ClintHeyer.Httpd.URI.Schemes scheme,
            string netLoc,
            string fullPath,
            string path,
            string port,
            string filename,
            string query,
            string userDetails,
            string fragment)

Property Detail

Extension

public string Extension

Gets the extension (where available)


Filename

public string Filename

Gets or sets the filename. Can be changed by a context to handle default '/' type URIs


Fragment

public string Fragment

Gets any fragment


FullPath

public string FullPath

Gets the full path


FullURI

public string FullURI

Gets the full Uri


GetVariables

public System.Collections.Specialized.NameValueCollection GetVariables


IsAbsolute

public bool IsAbsolute

Gets whether the Uri points to an absolute resource


Location

public string Location

Gets the location


Path

public string Path

Gets the path


Port

public string Port

Gets the port


Query

public string Query

Gets any raw query information


SafePath

public string SafePath

Gets or sets the 'safe' path for the Uri, which stripped of filesystem escape characters


Scheme

public ClintHeyer.Httpd.URI.Schemes Scheme

Gets the scheme


UserDetails

public string UserDetails

Method Detail

IsLegal

private bool IsLegal(string p)

Checks a string for illegal characters

Parameters:
p -
Returns:

Parse

public ClintHeyer.Httpd.URI Parse(string p)

Parses the given Uri string

Parameters:
p - Uri
Returns:
Uri
Throws:
ClintHeyer.Httpd.MalformedURIException - Uri is malformed

Parse

public ClintHeyer.Httpd.URI Parse(string p,
                                  string userScheme)


ProcessQuery

private void ProcessQuery()


ToString

public string ToString()

Gets a string representation of uri

Returns:
Uri