Main Page | Class Hierarchy | Class List | File List | Class Members | File Members

OW32::CServerAuthority Class Reference

Additional handling for server based naming authority schemes (http, ftp, etc). More...

#include <URIComponents.h>

List of all members.

Public Member Functions

 CServerAuthority::CServerAuthority ()
 Default constructor.
 CServerAuthority::CServerAuthority (const char *authorityString, std::string::size_type authorityStringLen)
 Constructor which parses the passed in authority.
 CServerAuthority::CServerAuthority (const std::string &authorityString)
 Constructor which parses the passed in authority.
void parse (const char *authorityString, std::string::size_type authorityStringLen)
 Parse an authority into its component parts.
std::string make () const
 Reassemble the authority components to make a complete authority.
void setHost (const std::string &host)
 Set the host component of the authority.
void setHost (const char *host)
 Set the host component of the authority.
const std::string & getHost () const
 Get the host component of the authority.
void setPort (const int port)
 Set the port component of the authority.
const int getPort () const
 Get the port component of the authority.
void setUser (const char *user)
 Set the user name component of the authority.
void setUser (const std::string &user)
 Set the user name component of the authority.
const std::string & getUser () const
 Get the user component of the authority.
void setPassword (const std::string &password)
 Set the password component of the authority.
void setPassword (const char *password)
 Set the password component of the authority.
const std::string & getPassword () const
 Get the password component of the authority.


Detailed Description

Additional handling for server based naming authority schemes (http, ftp, etc).


Member Function Documentation

OW32::CServerAuthority::CServerAuthority::CServerAuthority const std::string &  authorityString  )  [inline]
 

Constructor which parses the passed in authority.

Parameters:
authorityString URI to parse

OW32::CServerAuthority::CServerAuthority::CServerAuthority const char *  authorityString,
std::string::size_type  authorityStringLen
[inline]
 

Constructor which parses the passed in authority.

Parameters:
uriString URI to parse
uriStringLen Length of the URI string

const std::string& OW32::CServerAuthority::getHost  )  const [inline]
 

Get the host component of the authority.

const std::string& OW32::CServerAuthority::getPassword  )  const [inline]
 

Get the password component of the authority.

const int OW32::CServerAuthority::getPort  )  const [inline]
 

Get the port component of the authority.

Returns -1 if the port is not defined.

const std::string& OW32::CServerAuthority::getUser  )  const [inline]
 

Get the user component of the authority.

std::string OW32::CServerAuthority::make  )  const
 

Reassemble the authority components to make a complete authority.

Returns:
The reassembled URI

void OW32::CServerAuthority::parse const char *  authorityString,
std::string::size_type  authorityStringLen
 

Parse an authority into its component parts.

Parameters:
authorityString The authority string to parse
authorityStringLen The length of the authority string

void OW32::CServerAuthority::setHost const char *  host  )  [inline]
 

Set the host component of the authority.

void OW32::CServerAuthority::setHost const std::string &  host  )  [inline]
 

Set the host component of the authority.

void OW32::CServerAuthority::setPassword const char *  password  )  [inline]
 

Set the password component of the authority.

void OW32::CServerAuthority::setPassword const std::string &  password  )  [inline]
 

Set the password component of the authority.

void OW32::CServerAuthority::setPort const int  port  )  [inline]
 

Set the port component of the authority.

void OW32::CServerAuthority::setUser const std::string &  user  )  [inline]
 

Set the user name component of the authority.

void OW32::CServerAuthority::setUser const char *  user  )  [inline]
 

Set the user name component of the authority.


The documentation for this class was generated from the following file:
Generated on Sun Jun 5 01:29:29 2005 for OW32 by  doxygen 1.3.9.1