UrlEncoded

Handles coding of MIME "x-www-form-urlencoded". <p> This class handles the encoding and decoding for either the query string of a URL or the _content of a POST HTTP request. </p> <b>Notes</b> <p> The UTF-8 charset is assumed, unless otherwise defined by either passing a parameter or setting the "org.hunt.utils.UrlEncoding.charset" System property. </p> <p> The hashtable either contains string single values, vectors of string or arrays of Strings. </p> <p> This class is only partially synchronised. In particular, simple get operations are not protected from concurrent updates. </p>

@see java.net.URLEncoder

Constructors

this
this()
Undocumented in source.
this
this(string query)
Undocumented in source.

Members

Functions

decode
void decode(string query)
Undocumented in source. Be warned that the author may not have intended to support it.
decode
void decode(string query, string charset)
Undocumented in source. Be warned that the author may not have intended to support it.
encode
string encode()

Encode MultiMap with % encoding for UTF8 sequences.

encode
string encode(string charset)

Encode MultiMap with % encoding for arbitrary string sequences.

encode
string encode(string charset, bool equalsForNullValue)

Encode MultiMap with % encoding.

Static functions

decodeString
string decodeString(string encoded)

Decode string with % encoding. This method makes the assumption that the majority of calls will need no decoding.

decodeString
string decodeString(string encoded, int offset, int length, string charset)

Decode string with % encoding. This method makes the assumption that the majority of calls will need no decoding.

decodeTo
void decodeTo(string content, MultiMap!string map, string charset)

Decoded parameters to Map.

encode
string encode(MultiMap!string map, string charset, bool equalsForNullValue)

Encode MultiMap with % encoding.

encodeString
string encodeString(string string)

Perform URL encoding.

encodeString
string encodeString(string str, string charset)

Perform URL encoding.

Variables

ENCODING
enum string ENCODING;
Undocumented in source.

Meta