Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members  

mpcl::net::TUrlEncoder Class Reference

Class for encoding using content type 'application/x-www-form-urlencoded'. More...

#include <url_encoder.hh>

List of all members.

Static Public Methods

TString _encode (const TString &rkySOURCE_PLAIN)
TString _encode (const TStringToStringMap &rktSOURCE_PARAMETER_MAP, bool gEMPTY_PARAMETERS_TOO=true)


Detailed Description

Class for encoding using content type 'application/x-www-form-urlencoded'.

Definition at line 45 of file url_encoder.hh.


Member Function Documentation

mpcl::text::TString mpcl::net::TUrlEncoder::_encode const TStringToStringMap &    rktSOURCE_PARAMETER_MAP,
bool    gEMPTY_PARAMETERS_TOO = true
[static]
 

Encodes a set of control names and their values with the content type 'application/x-www-form-urlencoded' and returns a string with the result.

Parameters:
rktSOURCE_PARAMETER_MAP  Map with pairs of control name, value.
gEMPTY_PARAMETERS_TOO  If true the empty parameters will be encoded.
Returns:
A string encoded using content type 'application/x-www-form-urlencoded' with all control names and values.
See also:
http://www.w3.org/TR/REC-html40/interact/forms.html#h-17.13.4.1

Definition at line 72 of file url_encoder.cc.

References _encode(), and mpcl::text::TString.

mpcl::text::TString mpcl::net::TUrlEncoder::_encode const TString &    rkySOURCE_PLAIN [static]
 

Encodes a string using content type 'application/x-www-form-urlencoded'.

Parameters:
rkySOURCE_PLAIN  Plain string.
Returns:
Encoded string using content type 'application/x-www-form-urlencoded'.
See also:
http://www.w3.org/TR/REC-html40/interact/forms.html#h-17.13.4.1

Definition at line 37 of file url_encoder.cc.

References mpcl::text::TString.

Referenced by _encode().


The documentation for this class was generated from the following files:
Generated on Mon Oct 13 02:35:25 2003 for MPCL by doxygen1.2.18