#include <HttpTransport.hpp>
Inheritance diagram for HttpTransport::
Public Types | |
enum | Type { POST, MPOST } |
HTTP category, Only POST is used currently, MPOST is not supported yet. More... | |
Public Methods | |
HttpTransport (Url url) | |
Create HTTP transport with provided URL as remote address, set HTTP category default to POST. More... | |
HttpTransport (std::string &strUrl) | |
Create HTTP transport with provided remote address as URL-string, set HTTP category default to POST. More... | |
~HttpTransport () | |
bool | Init () |
Initialize HTTP transport by establishing a channel to the remote end. More... | |
bool | GetStatus (const std::string &p_HttpPacket) |
Obtain the status of the HTTP packet validity. More... | |
void | SetProperty (const std::string &p_Property, const std::string &p_Value) |
Set properties of HTTP transport such as additional Header fields like SOAPAction. More... | |
const Transport& | operator>> (std::string &p_Payload) |
Read from a HTTP transport handler and store read payload. More... | |
const Transport& | operator<< (const std::string &p_Payload) |
Write a given payload by using HTTP transport as carrier. More... | |
Private Types | |
typedef std::vector< std::pair< std::string, std::string> > | Header_t |
Private Methods | |
void | HTTPBind (const std::string &p_Payload) |
Build a HTTP packet with a given payload & additional HTTP properties. More... | |
void | HTTPValidate (const std::string &p_HttpPacket) |
Validate HTTP packets received from the channel. More... | |
void | GetPayLoad (const std::string &p_HttpPacket, std::string::size_type &offset) |
Extract payload from the HTTP packet starting from a given offset. More... | |
void | Error (const char *err) |
Report error on read/write. More... | |
Private Attributes | |
Type | m_Typ |
Type of the HTTP; POST or MPOST. More... | |
std::ostringstream | m_OutMsg |
Holds outgoing HTTP packet. More... | |
std::istringstream | m_InMsg |
Holds incoming HTTP packet. More... | |
std::string | m_PayLoad |
Holds the payload. More... | |
Header_t | m_AdditionalHeader |
Additional Header fields as name value pairs. More... |
Implements HTTP transport as SOAP-Envelop carrier, for sending/receiving SOAP messages with HTTP 1.1/1.0; This implementation abstract the Transport layer for the SOAP payloads
Definition at line 86 of file HttpTransport.hpp.
|
Definition at line 129 of file HttpTransport.hpp. |
|
HTTP category, Only POST is used currently, MPOST is not supported yet.
Definition at line 90 of file HttpTransport.hpp. |
|
Create HTTP transport with provided URL as remote address, set HTTP category default to POST.
Definition at line 93 of file HttpTransport.hpp. |
|
Create HTTP transport with provided remote address as URL-string, set HTTP category default to POST.
Definition at line 96 of file HttpTransport.hpp. |
|
Shutdown any established channel Definition at line 77 of file CVS/Base/HttpTransport.cpp. |
|
Report error on read/write. Report error on read/write Definition at line 352 of file CVS/Base/HttpTransport.cpp. Referenced by HTTPValidate().
|
|
Extract payload from the HTTP packet starting from a given offset. Extract payload from the HTTP packet starting from a given offset Definition at line 302 of file CVS/Base/HttpTransport.cpp. Referenced by HTTPValidate().
|
|
Obtain the status of the HTTP packet validity. Obtain the status of the HTTP packet validity.
Reimplemented from Transport. Definition at line 218 of file CVS/Base/HttpTransport.cpp. |
|
Build a HTTP packet with a given payload & additional HTTP properties. Build a HTTP packet with a given payload & additional HTTP properties Uses HTTP 1.1; if HTTP 1.0 is required we have to manage with setting the properties. Only POST is supported for the time being; hope to support M-POST Definition at line 182 of file CVS/Base/HttpTransport.cpp. Referenced by operator<<().
|
|
Validate HTTP packets received from the channel. Validate HTTP packets received from the channel.
Definition at line 233 of file CVS/Base/HttpTransport.cpp. Referenced by GetStatus(), and operator>>().
|
|
Initialize HTTP transport by establishing a channel to the remote end. Initialize HTTP transport by establishing a channel to the remote end.
Reimplemented from Transport. Definition at line 89 of file CVS/Base/HttpTransport.cpp. |
|
Set properties of HTTP transport such as additional Header fields like SOAPAction. Set properties of HTTP transport such as additional Header fields like SOAPAction.
Reimplemented from Transport. Definition at line 115 of file CVS/Base/HttpTransport.cpp. |
|
Write a given payload by using HTTP transport as carrier. Write a given payload to the established channel by using HTTP transport as carrier. Reimplemented from Transport. Definition at line 159 of file CVS/Base/HttpTransport.cpp. |
|
Read from a HTTP transport handler and store read payload. Read from a HTTP transport handler and store read payload.
Reimplemented from Transport. Definition at line 128 of file CVS/Base/HttpTransport.cpp. |
|
Additional Header fields as name value pairs.
Definition at line 137 of file HttpTransport.hpp. |
|
Holds incoming HTTP packet.
Definition at line 134 of file HttpTransport.hpp. |
|
Holds outgoing HTTP packet.
Definition at line 133 of file HttpTransport.hpp. |
|
Holds the payload.
Definition at line 136 of file HttpTransport.hpp. |
|
Type of the HTTP; POST or MPOST.
Definition at line 131 of file HttpTransport.hpp. |
Copyright © 2001 SL_OpenSource XML Project. All Rights Reserved