Joutsen v0.5.0+18-g5fdf104
Loading...
Searching...
No Matches
Public Member Functions | Protected Attributes | Properties | List of all members
Joutsen.Web.UriBuilder Class Reference

A class that can be used to easily build URIs. More...

Public Member Functions

 UriBuilder ()
 Creates a new instance for baseUrl "http://localhost/".
 
 UriBuilder (string baseUrl)
 Creates a new instance with a baseUrl to start from.
 
override string ToString ()
 Returns a string representation of the URI.
 

Protected Attributes

System.UriBuilder builder
 

Properties

NameValueCollection QueryParameters [get, protected set]
 A collection of name value pairs which represent the query parameters of the URI.
 
string Fragment [get, set]
 The fragment of the URI which is everything after the "#".
 
string Host [get, set]
 The host name or IP address of the URI.
 
string Password [get, set]
 The password in the URI if provided.
 
string Path [get, set]
 The path to the resource referenced by the URI.
 
int Port [get, set]
 The port in the URI if provided.
 
string Scheme [get, set]
 The scheme of the URI.
 
string Username [get, set]
 The username in the URI if provided.
 
Uri Uri [get]
 Fetches the complete URI.
 

Detailed Description

A class that can be used to easily build URIs.

Since
0.5.0

Constructor & Destructor Documentation

◆ UriBuilder() [1/2]

Joutsen.Web.UriBuilder.UriBuilder ( )

Creates a new instance for baseUrl "http://localhost/".

◆ UriBuilder() [2/2]

Joutsen.Web.UriBuilder.UriBuilder ( string  baseUrl)

Creates a new instance with a baseUrl to start from.

Member Function Documentation

◆ ToString()

override string Joutsen.Web.UriBuilder.ToString ( )

Returns a string representation of the URI.

Returns
a string that represents the URI build by this instance

Member Data Documentation

◆ builder

System.UriBuilder Joutsen.Web.UriBuilder.builder
protected

Property Documentation

◆ Fragment

string Joutsen.Web.UriBuilder.Fragment
getset

The fragment of the URI which is everything after the "#".

◆ Host

string Joutsen.Web.UriBuilder.Host
getset

The host name or IP address of the URI.

◆ Password

string Joutsen.Web.UriBuilder.Password
getset

The password in the URI if provided.

◆ Path

string Joutsen.Web.UriBuilder.Path
getset

The path to the resource referenced by the URI.

◆ Port

int Joutsen.Web.UriBuilder.Port
getset

The port in the URI if provided.

◆ QueryParameters

NameValueCollection Joutsen.Web.UriBuilder.QueryParameters
getprotected set

A collection of name value pairs which represent the query parameters of the URI.

◆ Scheme

string Joutsen.Web.UriBuilder.Scheme
getset

The scheme of the URI.

◆ Uri

Uri Joutsen.Web.UriBuilder.Uri
get

Fetches the complete URI.

◆ Username

string Joutsen.Web.UriBuilder.Username
getset

The username in the URI if provided.