public final class UriUtil extends Object
A light-weight utility class for applying encoding to values that are applied to expression values.
| Modifier and Type | Method and Description |
|---|---|
static String |
encode(String sourceValue)
Encodes general uri expressions, allowing only unreserved characters.
|
static String |
encodeFragment(String sourceValue)
Encodes fragments, allowing only the characters defined in uri fragments(http://tools.ietf
.org/html/rfc3986#appendix-A).
|
static String |
encodeReserved(String sourceValue)
Encodes the reserved expression, allowing all reserved and unreserved characters.
|
public static String encodeFragment(String sourceValue)
sourceValue - should not contain a PCT encoded string.public static String encodeReserved(String sourceValue)
sourceValue - should not contain a PCT encoded string.Copyright © April 30, 2012-2012 Ryan J. McDonough. All Rights Reserved.