Package com.damnhandy.uri.template
Class UriUtil
- java.lang.Object
-
- com.damnhandy.uri.template.UriUtil
-
public final class UriUtil extends Object
A light-weight utility class for applying encoding to values that are applied to expression values.
- Version:
- $Revision: 1.1 $
- Author:
- Ryan J. McDonough
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static String
encode(String sourceValue)
static String
encodeFragment(String sourceValue)
-
-
-
Method Detail
-
encodeFragment
public static String encodeFragment(String sourceValue) throws UnsupportedEncodingException
- Parameters:
sourceValue
-- Returns:
- the encoded string
- Throws:
UnsupportedEncodingException
-
encode
public static String encode(String sourceValue) throws UnsupportedEncodingException
- Parameters:
sourceValue
-- Returns:
- the encoded string
- Throws:
UnsupportedEncodingException
-
-