public class UrlEncoder
extends java.lang.Object
| Constructor and Description |
|---|
UrlEncoder() |
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
urlDecode(java.lang.String value)
Decode a string for use in the path of a URL; uses URLDecoder.decode,
which decodes a string for use in the query portion of a URL.
|
static java.lang.String |
urlEncode(java.lang.String value,
boolean path)
Encode a string for use in the path of a URL; uses URLEncoder.encode,
(which encodes a string for use in the query portion of a URL), then
applies some postfilters to fix things up per the RFC.
|
public static java.lang.String urlEncode(java.lang.String value,
boolean path)
value - the value to encodepath - true if the value is intended to represent a pathpublic static java.lang.String urlDecode(java.lang.String value)
value - The value to decode