java.lang.Object | |
↳ | webwork.util.URLCodec |
Implements the 'www-form-urlencoded' encoding scheme, also misleadingly known as URL encoding.
For more detailed information please refer to Chapter 17.13.4 'Form content types' of the HTML 4.01 Specification
This codec is meant to be a replacement for standard Java classes java.net.URLEncoder and java.net.URLDecoder on older Java platforms, as these classes in Java versions below 1.4 rely on the platform's default charset encoding.This class was copied from Apache, with some modifications
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
ESCAPE_CHAR | |||||||||||
WWW_FORM_URL | BitSet of www-form-url safe characters. | ||||||||||
log |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Decodes an array of URL safe 7-bit characters into an array of original bytes.
| |||||||||||
Decodes a URL safe object into its original form.
| |||||||||||
Decodes a URL safe string into its original form using the specified encoding.
| |||||||||||
Decodes a URL safe string into its original form using the default string charset.
| |||||||||||
Decodes an array of URL safe 7-bit characters into an array of original bytes.
| |||||||||||
Encodes an array of bytes into an array of URL safe 7-bit characters.
| |||||||||||
Encodes an object into its URL safe form.
| |||||||||||
Encodes a string into its URL safe form using the specified string charset.
| |||||||||||
Encodes a string into its URL safe form using the default string charset.
| |||||||||||
Encodes an array of bytes into an array of URL safe 7-bit characters.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
Decodes an array of URL safe 7-bit characters into an array of original bytes. Escaped characters are converted back to their original representation.
bytes | array of URL safe characters |
---|
UnsupportedEncodingException | Thrown if URL decoding is unsuccessful |
---|
Decodes a URL safe object into its original form. Escaped characters are converted back to their original representation.
pObject | URL safe object to convert into its original form |
---|
UnsupportedEncodingException | Thrown if the argument is not a String or byte[] . Thrown if a failure
condition is encountered during the decode process.
|
---|
Decodes a URL safe string into its original form using the specified encoding. Escaped characters are converted back to their original representation.
pString | URL safe string to convert into its original form |
---|---|
charset | the original string charset |
UnsupportedEncodingException | Thrown if charset is not supported |
---|
Decodes a URL safe string into its original form using the default string charset. Escaped characters are converted back to their original representation.
pString | URL safe string to convert into its original form |
---|
UnsupportedEncodingException | Thrown if URL decoding is unsuccessful |
---|
Decodes an array of URL safe 7-bit characters into an array of original bytes. Escaped characters are converted back to their original representation.
bytes | array of URL safe characters |
---|
UnsupportedEncodingException | Thrown if URL decoding is unsuccessful |
---|
Encodes an array of bytes into an array of URL safe 7-bit characters. Unsafe characters are escaped.
bytes | array of bytes to convert to URL safe characters |
---|
Encodes an object into its URL safe form. Unsafe characters are escaped.
pObject | string to convert to a URL safe form |
---|
UnsupportedEncodingException | Thrown if URL encoding is not applicable to objects of this type or if encoding is unsuccessful |
---|
Encodes a string into its URL safe form using the specified string charset. Unsafe characters are escaped.
pString | string to convert to a URL safe form |
---|---|
charset | the charset for pString |
UnsupportedEncodingException | Thrown if charset is not supported |
---|
Encodes a string into its URL safe form using the default string charset. Unsafe characters are escaped.
pString | string to convert to a URL safe form |
---|
UnsupportedEncodingException | Thrown if URL encoding is unsuccessful |
---|
Encodes an array of bytes into an array of URL safe 7-bit characters. Unsafe characters are escaped.
urlsafe | bitset of characters deemed URL safe |
---|---|
bytes | array of bytes to convert to URL safe characters |