namespace Akenti class URLConnection : public ref_ptr<URLConnectionImpl>

A URLConnection object is a ref_ptr to a URLConnectionImpl that wraps a URLHandlerImpl

Inheritance:


Public Methods

URL ()
Constructs a null URL
URL (const string& url)
Constructs this object
URL (const string& protocol, const string& host, int port, const string& file)
Constructs this object
~URL ()
Destructor
const string& getProtocol () const
Returns a string containing the protocol of this url object
const string& getHost () const
Returns a string containing the host of this url object
int getPort () const
Returns an integer containing the port of this url object
const string& getFile () const
Returns a string containing the file name of the information to be retrieved from this url
string toString () const
Returns the string representation of this url
URLConnection getURLConnection () const
Returns a URLConnection object associated with the URL
operator void* () const
bool operator== (const URL& url) const
string paramString () const
Returns a string representation for URL, which is used debugging purposes
URLConnection (URLConnectionImpl* impl = NULL)
Constructs this object
~URLConnection ()
Decrements the ref_cnt and when the count reaches 0 destroys the implementation and this object

Inherited from ref_ptr:

Public Methods

ref_ptr & operator=(const ref_ptr& rhs)
T* operator->() const
T* get() const

Documentation

A URLConnection object is a ref_ptr to a URLConnectionImpl that wraps a URLHandlerImpl. Provides services indirectly from the URLHandlerImpl.
URL()
Constructs a null URL. Uses the defaults for a null URL:" noprot", "nohost", port=-1,"/nofile" and NullURLHandler.

URL(const string& url)
Constructs this object. Uses the URLHandlerFactory to create a URLHandler for the specified protocol. The default URLHandler for files is FileURLHandlerImpl, for http is HttpURLHandlerImpl and for ldap is LDAPURLHandlerImpl.
Throws:
MalformedURLException if url cannot be parsed.
Parameters:
url - string containing the url.

URL(const string& protocol, const string& host, int port, const string& file)
Constructs this object.
Parameters:
protocol - any one of these protocols - http, file or ldap
host - connect to this host
port - the port to connect to the host for sending requests
file - the information to be retrieved from the url

~URL()
Destructor

const string& getProtocol() const
Returns a string containing the protocol of this url object
Returns:
protocol component of this url

const string& getHost() const
Returns a string containing the host of this url object
Returns:
host component of this url

int getPort() const
Returns an integer containing the port of this url object
Returns:
port component of this url

const string& getFile() const
Returns a string containing the file name of the information to be retrieved from this url.
Returns:
file component of this url

string toString() const
Returns the string representation of this url. See the class description for the possible formats of URLs.
Throws:

URLConnection getURLConnection() const
Returns a URLConnection object associated with the URL. URLConnection objects provide the methods to open and close connections to the URL and read and write data through the connection.
Returns:
a URLConnection object for this URL.

operator void*() const

bool operator==(const URL& url) const

string paramString() const
Returns a string representation for URL, which is used debugging purposes.
Returns:
debugging info

URLConnection(URLConnectionImpl* impl = NULL)
Constructs this object
Parameters:
impl - the URLConnectionImpl object

~URLConnection()
Decrements the ref_cnt and when the count reaches 0 destroys the implementation and this object


This class has no child classes.
Author:
Srilekha Mudumbai Abdelilah Essiari
Version:
1.1 00/11/01
See Also:
URLConnectionImpl
ref_ptr

alphabetic index hierarchy of classes


this page has been generated automatically by doc++

(c)opyright by Malte Zöckler, Roland Wunderling
contact: doc++@zib.de