Rogue Wave banner
Previous fileTop of DocumentContentsIndex pageNext file
Internet Protocols Module Reference Guide
Rogue Wave web site:  Home Page  |  Main Documentation Page

RWURL

Module:  Internet Protocols Module   Package:  Internet Basics


Does not inherit

Local Index

Members

Non-Members

Header File

#include <rw/internet/RWURL.h>

Description

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

RWURL has implicit knowledge of common URL schemes, that 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.

You must 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 Operator

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

Public Member Functions

RWCString
getData() const;
RWCString
getError() const;
RWCString
getHost() const;
RWCString
getMailAddress() const;
RWCString
getNewsArticle() const;
RWCString
getNewsGroup() const;
RWCString
getPassword() const;
RWCString
getPath() const;
RWCString
getPort() const;
RWCString
getSearch() const;
RWCString
getScheme() const;
RWCString
getType() const;
RWCString
getUser() const;
bool
isKnown() const;
bool
isValid() const;

Global Operator

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

NOTE -- This class does not have an extraction (>>) operator.


Previous fileTop of DocumentContentsIndex pageNext file

© Copyright Rogue Wave Software, Inc. All Rights Reserved.
Rogue Wave and SourcePro are registered trademarks of Rogue Wave Software, Inc. in the United States and other countries. All other trademarks are the property of their respective owners.
Contact Rogue Wave about documentation or support issues.