|
latest version v1.9 - last update 24 Nov 2005 |
|
#include <ltiURL.h>
Inheritance diagram for lti::url::serviceHandler:


Public Member Functions | |
| virtual bool | getDate (std::string &date)=0 |
| virtual bool | getContentType (std::string &type)=0 |
| virtual bool | getContentLength (int &size)=0 |
| virtual bool | getDataStream (std::ifstream *&i)=0 |
| const char * | getStatusString () const |
| bool | isOk () |
Protected Member Functions | |
| serviceHandler (url &u) | |
| std::ifstream * | getIn () |
| std::ofstream * | getOut () |
| void | setStatusString (const char *msg, const char *msg2=0) |
It contains methods for initiating a connection given an url and get the most important meta data. A certain service handler is created by subclassing this class. At present, there is only a HTTP handler which is buried in the implementation.
|
|
Constructor. Subclasses must call this constructor in order to set the URL for which this handler is used. |
|
|
Gets the length of the document which is described by the URL.
|
|
|
Gets the MIME type description of the document which is described by the URL.
|
|
|
Gets a pointer to an input stream which can be used for retrieving the data.
|
|
|
Gets the date of the server reply, may be empty.
|
|
|
Returns the input stream for the URL which is handled by this object.
|
|
|
Returns the output stream for the URL which is handled by this object.
|
|
|
return the last message set with setStatusString(). This will never return 0. If no status-string has been set yet an empty string (pointer to a string with only the char(0)) will be returned. |
|
|
Returns true if the handler's state is in order and meta-data can be inquired.
|
|
||||||||||||
|
set a status string.
|