Rogue Wave banner
Previous fileTop of DocumentContentsIndexNext file

RWURL



Module

Networking Tools: Thread-hot Internet Classes (int library)

Data Type and Member Function Indexes
(exclusive of constructors and destructors)

Member Functions

Synopsis

#include <rw/toolpro/url.h>
RWURL url("http://www.roguewave.com"); 

Required Libraries

thr, net, int, tls (and possibly std)

Description

RWURL is a convenience class that encapsulates parsing and component management of URL information. URLs are assumed to be in RFC1738 format:

RWURL implicitly has knowledge of some URL schemes. These include URLs supported by the thread-hot internet classes, as well as some other common URL schemes. Specific URL schemes known to the RWURL class include: HTTP, FTP, MAILTO, NEWS, NNTP, and FILE.

URL schemes not known to RWURL return FALSE from the isKnown method. URL schemes that are known but have basic syntactical errors return FALSE from the isValid method.

It is important to properly encode any unsafe characters in the URL. See RFC1738 or subsequent documents for proper encoding methods and syntactical questions.

Example

Program Output

Public Constructors

RWURL();
RWURL(const RWCString& urlString);

Public Member Operators

RWBoolean
operator==(const RWURL& url) const;

Public Member Functions

RWCString
data() const;
RWCString
error() const;
RWCString
host() const;
RWBoolean
isKnown() const;
RWBoolean
isValid() const;
RWCString
mailAddress() const;
RWCString
newsArticle() const;
RWCString
newsGroup() const;
RWCString
password() const;
RWCString
path() const;
RWCString
port() const;
RWCString
search() const;
RWCString
scheme() const;
RWCString
type() const;
RWCString
user() const;

Global Operators

ostream&
operator<<(ostream& strm, const RWURL& url); 


Previous fileTop of DocumentContentsIndexNext file

©Copyright 2000, Rogue Wave Software, Inc.
Contact Rogue Wave about documentation or support issues.