activemq-cpp-3.6.0
decaf::net::URLEncoder Class Reference

#include <src/main/decaf/net/URLEncoder.h>

Public Member Functions

virtual ~URLEncoder ()

Static Public Member Functions

static std::string encode (const std::string &value)
 This class contains a utility method for converting a string to the format required by the application/x-www-form-urlencoded MIME content type.

Constructor & Destructor Documentation

virtual decaf::net::URLEncoder::~URLEncoder ( )
inlinevirtual

Member Function Documentation

static std::string decaf::net::URLEncoder::encode ( const std::string &  value)
static

This class contains a utility method for converting a string to the format required by the application/x-www-form-urlencoded MIME content type.

All characters except letters ('a'..'z', 'A'..'Z') and numbers ('0'..'9') and characters '.', '-', '*', '_' are converted into their hexidecimal value prepended by ''.

For example: '#' -> %23

In addition, spaces are substituted by '+'

Parameters
value- the string to be converted
Returns
the converted string

The documentation for this class was generated from the following file: