gURI Class Reference

#include <ghttp.h>

Inheritance diagram for gURI:

gString gStringGeneric gStorage gTop gdHttpURI gdURI List of all members.

Public Types

enum  eScheme {
  e_ftp, e_http, e_gopher, e_mailto,
  e_news, e_nntp, e_telnet, e_wais,
  e_file, e_prospero, e_z39_50s, e_z39_50r,
  e_cid, e_mid, e_vemmi, e_service,
  e_imap, e_nfs, e_acap, e_rtsp,
  e_tip, e_pop, e_data, e_dav,
  e_opaquelocktoken, e_sip, e_sips, e_tel,
  e_fax, e_modem, e_ldap, e_https,
  e_soap_beep, e_soap_beeps, xmlrpc_beep, xmlrpc_beeps,
  e_urn, e_go, e_h323, e_ipp,
  e_tftp, e_mupdate, e_pres, e_im,
  e_mtqp, e_RSVD_reserved, e_afs, e_tn3270,
  e_mailserver, e_invalid
}
enum  ePathType { e_NoType, e_Absolute, e_Relative, e_RelativeQualified }

Public Member Functions

 gURI ()
 gURI (eScheme aScheme)
virtual ~gURI ()
virtual bool IsOk ()
virtual bool IsOkScheme ()
virtual eScheme GetScheme ()
virtual char * Str ()
ePathType GetPathType ()
virtual char * GetOriginalStr ()
virtual char * GetDomainStr ()
virtual char * GetPathStr ()
virtual bool IsValidDomain ()
virtual bool SetString (char *s)

Public Attributes

int lastOpError

Protected Member Functions

int thisParseString (char *s, eScheme aScheme)
int thisSetDomainPath (char *s, bool hasSpecScheme, eScheme aScheme)
int thisSetPath (char *s)
gURI::eScheme thisGetSchemeFromString (char *s, int &error)
int thisFetchScheme (char *s, eScheme &foundScheme)

Protected Attributes

ePathType pathType
gString sOriginal
gString sDomain
gString sPath

Static Protected Attributes

static sSchemeUse schemeTbl []

Classes

struct  sSchemeUse

Member Enumeration Documentation

enum gURI::ePathType
 

Enumeration values:
e_NoType 
e_Absolute 
e_Relative 
e_RelativeQualified 

Definition at line 160 of file ghttp.h.

enum gURI::eScheme
 

Enumeration values:
e_ftp 
e_http 
e_gopher 
e_mailto 
e_news 
e_nntp 
e_telnet 
e_wais 
e_file 
e_prospero 
e_z39_50s 
e_z39_50r 
e_cid 
e_mid 
e_vemmi 
e_service 
e_imap 
e_nfs 
e_acap 
e_rtsp 
e_tip 
e_pop 
e_data 
e_dav 
e_opaquelocktoken 
e_sip 
e_sips 
e_tel 
e_fax 
e_modem 
e_ldap 
e_https 
e_soap_beep 
e_soap_beeps 
xmlrpc_beep 
xmlrpc_beeps 
e_urn 
e_go 
e_h323 
e_ipp 
e_tftp 
e_mupdate 
e_pres 
e_im 
e_mtqp 
e_RSVD_reserved 
e_afs 
e_tn3270 
e_mailserver 
e_invalid 

Definition at line 99 of file ghttp.h.


Constructor & Destructor Documentation

gURI::gURI  ) 
 

Definition at line 199 of file ghttp.cpp.

gURI::gURI eScheme  aScheme  ) 
 

Definition at line 207 of file ghttp.cpp.

gURI::~gURI  )  [virtual]
 

Definition at line 215 of file ghttp.cpp.


Member Function Documentation

virtual char* gURI::GetDomainStr  )  [inline, virtual]
 

Definition at line 200 of file ghttp.h.

Referenced by gdURI::GetDomainAndPathStr(), gdURI::IsValidDomain(), and gdHttpURI::thisProcessHttpURI().

virtual char* gURI::GetOriginalStr  )  [inline, virtual]
 

Definition at line 197 of file ghttp.h.

Referenced by sOptSnarf::GoCmdHttp(), and sOptSnarf::HasSpecURI().

virtual char* gURI::GetPathStr  )  [inline, virtual]
 

Reimplemented in gdURI.

Definition at line 203 of file ghttp.h.

Referenced by gdURI::GetPathStr(), sOptSnarf::GoCmdHttp(), and gdHttpURI::thisProcessHttpURI().

ePathType gURI::GetPathType  )  [inline]
 

Definition at line 194 of file ghttp.h.

Referenced by gHSeq::GetURL(), and gHSeq::SetBaseHRef().

virtual eScheme gURI::GetScheme  )  [inline, virtual]
 

Definition at line 188 of file ghttp.h.

bool gURI::IsOk  )  [virtual]
 

Reimplemented from gStorage.

Reimplemented in gdURI, and gdHttpURI.

Definition at line 219 of file ghttp.cpp.

Referenced by gdURI::IsOk().

virtual bool gURI::IsOkScheme  )  [inline, virtual]
 

Definition at line 184 of file ghttp.h.

Referenced by sOptSnarf::GoCmdHttp(), IsOk(), and gdURI::IsOk().

bool gURI::IsValidDomain  )  [virtual]
 

Reimplemented in gdURI.

Definition at line 244 of file ghttp.cpp.

Referenced by gdURI::IsValidDomain(), and gdHttpURI::thisProcessHttpURI().

bool gURI::SetString char *  s  )  [virtual]
 

Definition at line 229 of file ghttp.cpp.

Referenced by gdURI::gdURI(), gHSeq::GetURL(), sOptSnarf::GoCmdHttp(), and gHSeq::SetBaseHRef().

char * gURI::Str  )  [virtual]
 

Reimplemented from gStringGeneric.

Definition at line 224 of file ghttp.cpp.

Referenced by gdURI::GetPathNameStr(), gHSeq::GetURL(), sOptSnarf::HasSpecURI(), and thisSetPath().

int gURI::thisFetchScheme char *  s,
eScheme foundScheme
[protected]
 

Definition at line 412 of file ghttp.cpp.

Referenced by thisGetSchemeFromString().

gURI::eScheme gURI::thisGetSchemeFromString char *  s,
int &  error
[protected]
 

Definition at line 371 of file ghttp.cpp.

Referenced by thisParseString().

int gURI::thisParseString char *  s,
eScheme  aScheme
[protected]
 

Definition at line 252 of file ghttp.cpp.

Referenced by SetString().

int gURI::thisSetDomainPath char *  s,
bool  hasSpecScheme,
eScheme  aScheme
[protected]
 

Definition at line 314 of file ghttp.cpp.

Referenced by thisParseString().

int gURI::thisSetPath char *  s  )  [protected]
 

Definition at line 341 of file ghttp.cpp.

Referenced by thisSetDomainPath().


Member Data Documentation

int gURI::lastOpError
 

Definition at line 175 of file ghttp.h.

Referenced by SetString().

ePathType gURI::pathType [protected]
 

Definition at line 213 of file ghttp.h.

Referenced by GetPathType(), IsOk(), thisParseString(), and thisSetPath().

gURI::sSchemeUse gURI::schemeTbl [static, protected]
 

Initial value:

{
    { gURI::e_ftp, "ftp", 1738 },
    { gURI::e_http, "http", 2616 },
    { gURI::e_file, "file", 0 },
    { gURI::e_invalid, NULL, -1 }
    
}

Definition at line 12 of file ghttp.cpp.

Referenced by thisFetchScheme().

gString gURI::sDomain [protected]
 

Definition at line 215 of file ghttp.h.

Referenced by gdURI::GetDomainAndPathStr(), GetDomainStr(), IsValidDomain(), gdURI::IsValidDomain(), SetString(), thisSetDomainPath(), and thisSetPath().

gString gURI::sOriginal [protected]
 

Definition at line 214 of file ghttp.h.

Referenced by GetOriginalStr(), and SetString().

gString gURI::sPath [protected]
 

Reimplemented in gdHttpURI.

Definition at line 216 of file ghttp.h.

Referenced by GetPathStr(), SetString(), and thisSetPath().


The documentation for this class was generated from the following files:
Generated on Sat Aug 18 02:41:23 2007 for xpfweb_v2x lib by  doxygen 1.4.2