Main Page | Class Hierarchy | Alphabetical List | Class List | 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)
MutableUri setPath (char[] path)
MutableUri setFragment (char[] fragment)

Static Public Member Functions

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

final int getDefaultPort (char[] scheme)

Detailed Description

Mutable version of Uri

Definition at line 642 of file Uri.d.


Member Function Documentation

this  )  [inline]
 

Create an empty Uri

Reimplemented from Uri.

Definition at line 650 of file Uri.d.

this char[]  uri  )  [inline]
 

Create a Uri from the provided text string.

Reimplemented from Uri.

Definition at line 661 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 673 of file Uri.d.

MutableUri clone Uri  uri  )  [inline, static]
 

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

Definition at line 690 of file Uri.d.

void reset  )  [inline]
 

Clear everything to null.

Definition at line 708 of file Uri.d.

References parse().

Referenced by HttpRequest::reset().

MutableUri parse char[]  uri  )  [inline]
 

Parse the given uri string

Reimplemented from Uri.

Definition at line 721 of file Uri.d.

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

MutableUri setScheme char[]  scheme  )  [inline]
 

Set the Uri scheme

Definition at line 733 of file Uri.d.

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

MutableUri setHost char[]  host  )  [inline]
 

Set the Uri host

Definition at line 745 of file Uri.d.

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

MutableUri setPort int  port  )  [inline]
 

Set the Uri port

Definition at line 757 of file Uri.d.

MutableUri setUserInfo char[]  userinfo  )  [inline]
 

Set the Uri userinfo

Definition at line 769 of file Uri.d.

MutableUri setQuery char[]  query  )  [inline]
 

Set the Uri query

Definition at line 781 of file Uri.d.

Referenced by HttpClient::open().

MutableUri setPath char[]  path  )  [inline]
 

Set the Uri path

Definition at line 793 of file Uri.d.

Referenced by FilePath::toUri().

MutableUri setFragment char[]  fragment  )  [inline]
 

Set the Uri fragment

Definition at line 805 of file Uri.d.

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

Definition at line 177 of file Uri.d.

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

Referenced by Uri::getValidPort().

char [] getScheme  )  [inline, inherited]
 

Definition at line 192 of file Uri.d.

References Uri::scheme.

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

char [] getHost  )  [inline, inherited]
 

Definition at line 204 of file Uri.d.

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

int getPort  )  [inline, inherited]
 

Definition at line 216 of file Uri.d.

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

int getValidPort  )  [inline, inherited]
 

Definition at line 228 of file Uri.d.

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

Referenced by HttpClient::this().

char [] getUserInfo  )  [inline, inherited]
 

Definition at line 242 of file Uri.d.

References Uri::userinfo.

char [] getPath  )  [inline, inherited]
 

Definition at line 254 of file Uri.d.

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

char [] getQuery  )  [inline, inherited]
 

Definition at line 266 of file Uri.d.

References Uri::query.

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

char [] getFragment  )  [inline, inherited]
 

Definition at line 278 of file Uri.d.

References Uri::fragment.

bool isGeneric  )  [inline, inherited]
 

Definition at line 289 of file Uri.d.

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

IBuffer write IBuffer  buf  )  [inline, inherited]
 

Definition at line 301 of file Uri.d.

References IBuffer::append(), Uri::encode(), Uri::IncUser, Uri::InvalidPort, Uri::scheme, and Uri::userinfo.

void write IWriter  writer  )  [inline, inherited]
 

Reimplemented from IWritable.

Definition at line 349 of file Uri.d.

override char [] toString  )  [inline, inherited]
 

Definition at line 360 of file Uri.d.

References memchr().

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

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

Definition at line 373 of file Uri.d.

Referenced by HttpRequest::getInputParameters().


The documentation for this class was generated from the following file:
Generated on Sun Nov 7 19:07:08 2004 for Mango by doxygen 1.3.6