Main Page | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Class Members | File Members | Related Pages

MutableUri Class Reference

Inheritance diagram for MutableUri:

Uri List of all members.

Public Member Functions

 this ()
 this (char[] uri)
 this (char[] scheme, char[] host, char[] path, char[] query=null)
void reset ()
MutableUri parse (char[] uri)
MutableUri setScheme (char[] scheme)
MutableUri setHost (char[] host)
MutableUri setPort (int port)
MutableUri setUserInfo (char[] userinfo)
MutableUri setQuery (char[] query)
char[] extendQuery (char[] tail)
MutableUri setPath (char[] path)
MutableUri setFragment (char[] fragment)

Static Public Member Functions

static MutableUri clone (Uri uri)

Private Member Functions

char[] getScheme ()
char[] getHost ()
int getPort ()
int getValidPort ()
char[] getUserInfo ()
char[] getPath ()
char[] getQuery ()
char[] getFragment ()
bool isGeneric ()
IBuffer write (IBuffer buf)
void write (IWriter writer)
override char[] toString ()
char[] decode (char[] s)

Static Private Member Functions

static final int getDefaultPort (char[] scheme)

Detailed Description

Mutable version of Uri

Definition at line 646 of file Uri.d.


Member Function Documentation

this  )  [inline]
 

Create an empty Uri

Reimplemented from Uri.

Definition at line 654 of file Uri.d.

this char[]  uri  )  [inline]
 

Create a Uri from the provided text string.

Reimplemented from Uri.

Definition at line 665 of file Uri.d.

this char[]  scheme,
char[]  host,
char[]  path,
char[]  query = null
[inline]
 

Construct a Uri from the given components. The query is optional.

Definition at line 677 of file Uri.d.

static MutableUri clone Uri  uri  )  [inline, static]
 

Clone another Uri. This can be used to make a MutableUri from an immutable Uri.

Definition at line 694 of file Uri.d.

void reset  )  [inline]
 

Clear everything to null.

Definition at line 712 of file Uri.d.

Referenced by HttpRequest::reset().

MutableUri parse char[]  uri  )  [inline]
 

Parse the given uri string

Reimplemented from Uri.

Definition at line 725 of file Uri.d.

Referenced by HttpRequest::getRequestUri(), and testUri().

MutableUri setScheme char[]  scheme  )  [inline]
 

Set the Uri scheme

Definition at line 737 of file Uri.d.

Referenced by HttpRequest::getRequestUri(), and FilePath::toUri().

MutableUri setHost char[]  host  )  [inline]
 

Set the Uri host

Definition at line 749 of file Uri.d.

Referenced by HttpRequest::getExplicitUri(), and FilePath::toUri().

MutableUri setPort int  port  )  [inline]
 

Set the Uri port

Definition at line 761 of file Uri.d.

MutableUri setUserInfo char[]  userinfo  )  [inline]
 

Set the Uri userinfo

Definition at line 773 of file Uri.d.

MutableUri setQuery char[]  query  )  [inline]
 

Set the Uri query

Definition at line 785 of file Uri.d.

char [] extendQuery char[]  tail  )  [inline]
 

Extend the Uri query

Definition at line 797 of file Uri.d.

Referenced by HttpClient::open().

MutableUri setPath char[]  path  )  [inline]
 

Set the Uri path

Definition at line 813 of file Uri.d.

Referenced by FilePath::toUri().

MutableUri setFragment char[]  fragment  )  [inline]
 

Set the Uri fragment

Definition at line 825 of file Uri.d.

static final int getDefaultPort char[]  scheme  )  [inline, static, inherited]
 

Definition at line 180 of file Uri.d.

References Uri::genericSchemes, Uri::InvalidPort, and Uri::port.

Referenced by Uri::getValidPort(), and Uri::write().

char [] getScheme  )  [inline, inherited]
 

Definition at line 195 of file Uri.d.

References Uri::scheme.

Referenced by HttpRequest::getRequestUri(), testFilePath(), and testServletEngine().

char [] getHost  )  [inline, inherited]
 

Definition at line 207 of file Uri.d.

References Uri::host.

Referenced by HttpRequest::getExplicitUri(), HttpRequest::getHost(), testFilePath(), testHttpClient3(), and HttpClient::this().

int getPort  )  [inline, inherited]
 

Definition at line 219 of file Uri.d.

References Uri::port.

Referenced by HttpRequest::getHost(), and testFilePath().

int getValidPort  )  [inline, inherited]
 

Definition at line 231 of file Uri.d.

References Uri::getDefaultPort(), Uri::InvalidPort, Uri::port, and Uri::scheme.

Referenced by HttpClient::this().

char [] getUserInfo  )  [inline, inherited]
 

Definition at line 245 of file Uri.d.

References Uri::userinfo.

char [] getPath  )  [inline, inherited]
 

Definition at line 257 of file Uri.d.

References Uri::path.

Referenced by HttpClient::open(), ServletProvider::service(), testFilePath(), and testServletEngine().

char [] getQuery  )  [inline, inherited]
 

Definition at line 269 of file Uri.d.

References Uri::query.

Referenced by HttpRequest::getInputParameters(), and testServletEngine().

char [] getFragment  )  [inline, inherited]
 

Definition at line 281 of file Uri.d.

References Uri::fragment.

bool isGeneric  )  [inline, inherited]
 

Definition at line 292 of file Uri.d.

References Uri::genericSchemes, and Uri::scheme.

IBuffer write IBuffer  buf  )  [inline, inherited]
 

Definition at line 304 of file Uri.d.

References IBuffer::append(), Uri::encode(), Uri::fragment, Uri::getDefaultPort(), Uri::host, Uri::IncPath, Uri::IncQuery, Uri::IncUser, Uri::InvalidPort, Uri::path, Uri::port, Uri::query, Uri::scheme, and Uri::userinfo.

Referenced by Uri::toString(), and Uri::write().

void write IWriter  writer  )  [inline, inherited]
 

Reimplemented from IWritable.

Definition at line 352 of file Uri.d.

References IWriter::getBuffer(), and Uri::write().

override char [] toString  )  [inline, inherited]
 

Definition at line 363 of file Uri.d.

References IBuffer::toString(), and Uri::write().

Referenced by AdminServlet::service(), FilePath::splice(), and testFilePath().

char [] decode char[]  s  )  [inline, inherited]
 

Definition at line 376 of file Uri.d.

References Uri::decoded, HeapSlice::expand(), memchr(), and HeapSlice::slice().

Referenced by HttpRequest::getInputParameters(), Uri::parse(), and Uri::parseAuthority().


The documentation for this class was generated from the following file:
Generated on Mon Nov 14 10:59:58 2005 for Mango by  doxygen 1.4.0