Main Page   Modules   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members   Related Pages  

dsURL Class Reference

#include <dsURL.h>

List of all members.

Public Types

enum  Proto {
  ftp, http, https, file,
  mailto, oracle, postgres, sybase,
  iso8583, spdh, none = -1
}
enum  HttpMethods { GET, POST, SOAP, unknown }
enum  dsURLFlags { urlNO_FLAGS = 0, urlRAW_OUT = 0x1, urlSHORT_READ = 0x2 }

Public Methods

 dsURL (int flags=urlNO_FLAGS)
 dsURL (const char *str, int flags=urlNO_FLAGS)
virtual ~dsURL ()
void parse (const char *url)
int get (std::ostream &ostr)
int post (std::ostream &ostr)
int post (std::ostream &ostr, dsStrstream &data)
int post (std::ostream &ostr, char *data, int pcount)
int soap (std::ostream &ostr, dsStrstream &data, char *SOAPAction)
int soap (std::ostream &ostr, char *data, int pcount, char *SOAPAction)
void dump (std::ostream &os)
const char * host ()
const char * location ()
const char * cgidata ()
const char * auth_user ()
const char * auth_pw ()
const int port ()
const Proto protocol ()
const char * protoName ()
const char * userStr ()

Protected Methods

virtual int read_answer (dsSocket *ms, std::ostream *ostr)
virtual void va_build_header (std::ostream &req, HttpMethods meth, int contLen,...)

Protected Attributes

int _flags
char * _user_str
char * _host
char * _location
char * _cgidata
char * _auth_user
char * _auth_pw
int _port
int _retcode
Proto _protocol


Member Enumeration Documentation

enum dsURL::dsURLFlags
 

Enumeration values:
urlNO_FLAGS 
urlRAW_OUT 
urlSHORT_READ 

enum dsURL::HttpMethods
 

Enumeration values:
GET 
POST 
SOAP 
unknown 

enum dsURL::Proto
 

Enumeration values:
ftp 
http 
https 
file 
mailto 
oracle 
postgres 
sybase 
iso8583 
spdh 
none 


Constructor & Destructor Documentation

dsURL::dsURL int    flags = urlNO_FLAGS
 

dsURL::dsURL const char *    str,
int    flags = urlNO_FLAGS
 

dsURL::~dsURL   [virtual]
 


Member Function Documentation

const char* dsURL::auth_pw   [inline]
 

const char* dsURL::auth_user   [inline]
 

const char* dsURL::cgidata   [inline]
 

void dsURL::dump std::ostream &    os
 

int dsURL::get std::ostream &    ostr
 

const char* dsURL::host   [inline]
 

const char* dsURL::location   [inline]
 

void dsURL::parse const char *    url
 

const int dsURL::port   [inline]
 

int dsURL::post std::ostream &    ostr,
char *    data,
int    pcount
 

int dsURL::post std::ostream &    ostr,
dsStrstream   data
 

int dsURL::post std::ostream &    ostr
 

const Proto dsURL::protocol   [inline]
 

const char * dsURL::protoName  
 

int dsURL::read_answer dsSocket   ms,
std::ostream *    ostr
[protected, virtual]
 

int dsURL::soap std::ostream &    ostr,
char *    data,
int    pcount,
char *    SOAPAction
 

int dsURL::soap std::ostream &    ostr,
dsStrstream   data,
char *    SOAPAction
 

const char* dsURL::userStr   [inline]
 

void dsURL::va_build_header std::ostream &    req,
HttpMethods    meth,
int    contLen,
...   
[protected, virtual]
 


Member Data Documentation

char* dsURL::_auth_pw [protected]
 

char* dsURL::_auth_user [protected]
 

char* dsURL::_cgidata [protected]
 

int dsURL::_flags [protected]
 

char* dsURL::_host [protected]
 

char* dsURL::_location [protected]
 

int dsURL::_port [protected]
 

Proto dsURL::_protocol [protected]
 

int dsURL::_retcode [protected]
 

char* dsURL::_user_str [protected]
 


The documentation for this class was generated from the following files:
Generated on Mon May 16 18:27:01 2005 for libdms4 by doxygen1.3-rc2