#include <SingleHostClientHttpSession.h> [code]
Inherits Protocols::Http::ClientHttpSession, and Protocols::Generics::SessionStatus.
Inherited by Protocols::Http::CompositeSingleHostClientHttpSession.
Inheritance diagram for Protocols::Http::SingleHostClientHttpSession:


SingleHostClientHttpSession talks to a single host (HTTP server), a Session to which is passed to the contructor. The SingleHostClientHttpSession object can be used to request resources from different virtual hosts as as long as they are all hosted by the same HTTP server (the one we have a Session with). That is realized by setting the "Host:" header field in the request message header.
Definition at line 61 of file SingleHostClientHttpSession.h.
Public Member Functions | |
| SingleHostClientHttpSession (ClientHttpSessionStatus *, Session *) | |
| ~SingleHostClientHttpSession () | |
| void | open () |
| Enables reading and writing of raw data. | |
| void | close () |
| void | abort () |
| void | get (const Uri &uri, File *outFile) |
| void | sessionReceivedData (Session *, const Data &) |
| void | sessionSendingData (Session *, const Data &) |
| void | sessionClosing (Session *) |
| Notification sent when Session::close() is called. | |
| void | sessionClosed (Session *) |
| Notification sent when the Session is completely closed. | |
Static Public Member Functions | |
| static RequestHeader | createRequestHeader (const QByteArray &method, const Uri &uri) |
Private Member Functions | |
| CALITKO_TESTABLE | SingleHostClientHttpSession (const SingleHostClientHttpSession &) |
| SingleHostClientHttpSession & | operator= (const SingleHostClientHttpSession &) |
| void | received (const ResponseHeader &) |
| void | received (const RawData &) |
| void | received (const BodyEnd &) |
| void | received (const DataBase &) |
Static Private Member Functions | |
| static QByteArray | requestUri (const Uri &uri) |
| static QByteArray | host (const Uri &uri) |
Private Attributes | |
| ClientHttpSessionStatus * | status_ |
| Session * | session_ |
| ObjectDispatcher< DataBase > | receivedDataDispatcher_ |
| File * | outFile_ |
|
|
|
|
||||||||||||
|
Definition at line 31 of file SingleHostClientHttpSession.cpp. |
|
|
Definition at line 54 of file SingleHostClientHttpSession.cpp. |
|
|
Implements Protocols::Http::ClientHttpSession. Definition at line 72 of file SingleHostClientHttpSession.cpp. |
|
|
Implements Protocols::Http::ClientHttpSession. Definition at line 67 of file SingleHostClientHttpSession.cpp. |
|
||||||||||||
|
Definition at line 87 of file SingleHostClientHttpSession.cpp. |
|
||||||||||||
|
Implements Protocols::Http::ClientHttpSession. Definition at line 77 of file SingleHostClientHttpSession.cpp. |
|
|
Definition at line 103 of file SingleHostClientHttpSession.cpp. |
|
|
Enables reading and writing of raw data.
Implements Protocols::Http::ClientHttpSession. Definition at line 62 of file SingleHostClientHttpSession.cpp. |
|
|
|
|
|
Definition at line 131 of file SingleHostClientHttpSession.cpp. |
|
|
Definition at line 126 of file SingleHostClientHttpSession.cpp. |
|
|
Definition at line 120 of file SingleHostClientHttpSession.cpp. |
|
|
Definition at line 115 of file SingleHostClientHttpSession.cpp. |
|
|
Definition at line 95 of file SingleHostClientHttpSession.cpp. |
|
|
Notification sent when the Session is completely closed.
Implements Protocols::Generics::SessionStatus. Definition at line 147 of file SingleHostClientHttpSession.cpp. |
|
|
Notification sent when Session::close() is called.
Implements Protocols::Generics::SessionStatus. Definition at line 141 of file SingleHostClientHttpSession.cpp. |
|
||||||||||||
|
Definition at line 109 of file SingleHostClientHttpSession.cpp. |
|
||||||||||||
|
Definition at line 136 of file SingleHostClientHttpSession.cpp. |
|
|
Definition at line 98 of file SingleHostClientHttpSession.h. |
|
|
Definition at line 97 of file SingleHostClientHttpSession.h. |
|
|
Definition at line 96 of file SingleHostClientHttpSession.h. |
|
|
Definition at line 95 of file SingleHostClientHttpSession.h. |