Network::URL Class Reference

#include <URLHandler.hpp>

List of all members.


Detailed Description

The Universal Resource Location implementation.

This is based on http://www.ietf.org/rfc/rfc2396.txt


Public Types

typedef Strings::FastString String
 String class to use.

Public Member Functions

URL appendRelativePath (String newPath) const
 Append path from the given path.
String asURI (const String &defaultScheme="") const
 Construct a text from this URL.
const StringgetAuthority () const
 Get the current authority.
const StringgetFragment () const
 Get the current fragment.
const StringgetPath () const
 Get the current path.
const StringgetQuery () const
 Get the current query.
const StringgetScheme () const
 Get the current scheme.
bool isValid ()
 Check if this URL is valid.
uint16 stripPortFromAuthority (uint16 defaultPortValue)
 Strip port information from authority and return it if known.
 URL (const String &_scheme, const String &_authority, const String &_path, const String &_query="", const String &_fragment="")
 Construct an URL from its part.
 URL (const String &inputURL, const String &defaultScheme="")
 Construct an URL from a UTF8 text.
 URL ()
 Default, and invalid constructor.

Static Public Member Functions

static String escapedURI (const String &inputURL)
 Escape an URL to only allowed chars.

Protected Attributes

String authority
 The authority, usually called the server.
String fragment
 The fragment to reach.
String path
 The path to the resource.
String query
 The query.
String scheme
 The scheme, also called protocol.


Member Typedef Documentation

typedef Strings::FastString Network::URL::String

String class to use.


Constructor & Destructor Documentation

Network::URL::URL (  )  [inline]

Default, and invalid constructor.

Network::URL::URL ( const String inputURL,
const String defaultScheme = "" 
) [inline]

Construct an URL from a UTF8 text.

Network::URL::URL ( const String _scheme,
const String _authority,
const String _path,
const String _query = "",
const String _fragment = "" 
) [inline]

Construct an URL from its part.


Member Function Documentation

URL Network::URL::appendRelativePath ( String  newPath  )  const [inline]

Append path from the given path.

String Network::URL::asURI ( const String defaultScheme = ""  )  const [inline]

Construct a text from this URL.

Parameters:
defaultScheme The default scheme if missing

URL::String Network::URL::escapedURI ( const String inputURL  )  [static]

Escape an URL to only allowed chars.

const String& Network::URL::getAuthority (  )  const [inline]

Get the current authority.

const String& Network::URL::getFragment (  )  const [inline]

Get the current fragment.

const String& Network::URL::getPath (  )  const [inline]

Get the current path.

const String& Network::URL::getQuery (  )  const [inline]

Get the current query.

const String& Network::URL::getScheme (  )  const [inline]

Get the current scheme.

bool Network::URL::isValid (  )  [inline]

Check if this URL is valid.

uint16 Network::URL::stripPortFromAuthority ( uint16  defaultPortValue  )  [inline]

Strip port information from authority and return it if known.


Member Data Documentation

String Network::URL::authority [protected]

The authority, usually called the server.

String Network::URL::fragment [protected]

The fragment to reach.

String Network::URL::path [protected]

The path to the resource.

String Network::URL::query [protected]

The query.

String Network::URL::scheme [protected]

The scheme, also called protocol.


The documentation for this class was generated from the following files:

(C) An X-Ryl669 project 2007

This document describes Unlimited Zooming Interface source code. UZI stands for Unlimited Zooming Interface, and source code license is